WASHINGTON — One of the most powerful moments during President Trump’s meeting with survivors and relatives of the Florida school shooting this week came when a student pleaded with the president to do what Australia did after a similar tragedy.

As it happened, Mr. Trump had an opportunity on Friday to get a firsthand report on Australia’s crackdown on guns when he hosted the country’s prime minister at the White House. But both men quickly discounted any comparisons, saying their nations are too different.

“It’s a completely different context, historically, legally and so forth,” Prime Minister Malcolm Turnbull said when asked about his country’s example during a news conference. “We are very satisfied with our laws,” he added. “But we certainly don’t presume to provide policy or political advice on that matter here. You have an amendment to your Constitution that deals with gun ownership. You have a very, very different history.”

Standing beside him in the East Room of the White House, Mr. Trump repeated the point. “They’re very different countries with very different sets of problems,” said the president, who has embraced a couple of modest new gun restrictions since the Florida shooting, even as he promotes the idea of arming trained teachers. “But I think we’re well on the way to solving that horrible problem that happens far too often in the United States.”