John McCain is being applauded for delivering a fiery speech denouncing "half-baked, spurious nationalism" as he accepted the National Constitution Center Liberty Medal in Philadelphia on Monday.

The cheers are understandable. Whatever your views of his Senate voting record, McCain is an American hero who is justly celebrated for his sacrifices in Vietnam. He is showing grace and resilience in fighting a terrible illness. And yes, his targets are clearly the likes of President Trump and former White House strategist Stephen Bannon.

Nevertheless, there is much about McCain's remarks that is wrong or at least incomplete. And his errors are precisely what is fanning the flames of the populist and nationalist backlash he now denounces to such great fanfare.

"We live in a land made of ideals, not blood and soil," McCain declared. This is something the man who beat McCain in the 2008 presidential race might describe as as "false choice."

The United States has had an ideological component to it since the founding of the republic, and we have never been an ethnostate in the sense of, say, Japan. But every country that exists is also a place, a homeland to real flesh-and-blood people whose lives can't be defined by a political tract or quantified in our national GDP.

Many of the brave men who fought alongside McCain in Vietnam believed they were fighting for their homes and their families, not merely waging a battle against the domino theory or to vindicate American capitalism against the challenge of atheistic communism.

Read the diaries of the soldiers who died in the Battle of Antietam or who stormed the beaches of Normandy. They were often preoccupied with concerns more parochial than abolition or the fight against fascism, as vital as both those struggles were. They invoked parents and wives, friends and neighborhoods, the farms they grew up on and the city streets they knew like the backs of their hands.

McCain himself is remembered not for his concise refutation of Marxist-Leninism or recitation of The Road to Serfdom. We praise him for his sacrifice on behalf of real people, for refusing to be released before his comrades in arms just as much as for what it meant to the lives of those men as for the propaganda victory he sought to deny the communists.

Unfortunately, the later period of McCain's career has been characterized by a low threshold for the use of military force and the advocacy of war on an unsustainably large number of fronts. That is another failing of his ideological approach to foreign policy: The excessive propensity to wage war is thought to be one of the failings of blood-and-soil nationalism. Yet it is plainly present in McCain's more idealistic version too.

McCain appeals to these abstractions as much to avoid debate as to engage in it. If you do not wish to intervene militarily in an area where the Arizona senator says we must, you "refuse the obligations of international leadership." If you wish to admit fewer immigrants for a certain period of time than would be permitted under a bill McCain sponsors, you "would rather find scapegoats than solve problems."

In theory, this more abstract view of America and its role in the world is more inclusive because it is not limited by race or ethnicity. In practice, it is often more exclusive when a diverse group of people who were either born in the United States or have lived here most of their lives fail to pass the requisite ideological litmus tests — thus becoming as "unpatriotic as an attachment to any other tired dogma of the past that Americans consigned to the ash heap of history."

So skepticism about the idea that it is more practical to guard Iraq's borders than America's belongs on the "ash heap of history" alongside Nazism and communism?

The debates this kind of talk suppresses are important, because our history includes not just sweeping victories on behalf of our ideals but also conflicts like World War I, Vietnam, and Iraq that many would judge to have been failed interventions that set back our fights against fascism, communism, or a variant of radical Islam armed with the tools of terror.

Interestingly, a younger senator who largely agrees McCain on foreign policy has taken a different approach. Sen. Tom Cotton (R-Ark.) delivered a speech of his own in Washington, D.C. balancing the American idea with the less abstract American homeland.

"Unlike any other country, America is an idea — but it is not only an idea," Cotton said. "America is a real, particular place with real borders and real, flesh-and-blood people. And the declaration tells us it was so from the very beginning."

Divorcing these two facts will give us immigration and foreign policies that don't work — and is increasingly delivering an illiberalism across the Western world that is at odds with what McCain is preaching.