The World Economic Forum this year feels like an exercise in ritual self-flagellation, which — as with the old Christian practice of fasting and whipping one’s own body — is supposed to purify the sinful nature of man. The sin, of course, is globalization, which everyone now seems to agree has been lopsided, inequitable and dangerous. In fact, most of the flaws attributed to globalization are actually mistakes in national policy that can be corrected.

It took a Chinese billionaire to speak frankly on this topic. Jack Ma, the founder of the e-commerce giant Alibaba, estimated that over the past three decades the U.S. government spent $14.2 trillion fighting 13 wars. That money could have been invested in America, building infrastructure and creating jobs. “You’re supposed to spend money on your own people,” he said. He pointed out that globalization produced massive profits for the U.S. economy but much of that money ended up on Wall Street. “And what happened? Year 2008. The financial crisis wiped out $19.2 trillion [in the] U.S.A. alone. . . . What if the money [had been] spent on the Midwest of the United States developing the industry there?” he asked. “It’s not [that] the other countries steal jobs from you guys — it is your strategy,” he concluded.

You don’t have to accept Ma’s specifics and statistics to recognize the validity of his general point. Globalization created huge opportunities for growth, many of which were taken by U.S. companies. The global economy is still dominated by large American firms; 134 of Fortune’s Global 500 are American. And if you look at those in cutting-edge industries, the vast majority are American. These companies have benefited enormously by having global supply chains that can source goods and services around the world, either to lower labor costs or to be close to the markets in which they sell. Since 95 percent of the world’s potential consumers live outside the United States, finding ways to sell to them will have to be a core strategy for growth, even for a country with a large domestic economy such as the United States.

Obviously globalization has large effects on national economies and societies, and it produces some significant problems. What complex phenomenon does not? But it also generates opportunities, innovation and wealth for nations that they can then use to address these problems through good national strategies. The solutions are easy to state in theory — education, skills-based training and retraining, infrastructure. But they are extremely expensive and hard to execute well.

(Reuters)

It is much easier to rail against foreigners and promise to fight them with tariffs and fines. But the cost of addressing these problems at the global level is massive. The Economist reports, in a survey on globalization, that in 2009 the Obama administration punished China with a tariff on its tires. Two years later, the cost to U.S. consumers was $1.1 billion, or $900,000 for every job “saved.” The impact of such tariffs is usually felt disproportionately by the poor and middle class because they spend a larger share of their income on imported goods, such as food and clothing. That same Economist survey points to a study that calculated that, across 40 countries, if transnational trade ended, the wealthiest consumers would lose 28 percent of their purchasing power, but the poorest tenth would lose a staggering 63 percent.

Perhaps most important, the key driver depressing wages and eliminating jobs in the industrialized world is technology, not globalization. For example, between 1990 and 2014, U.S. automotive production increased by 19 percent , but with 240,000 fewer workers.

Even when manufacturing comes back to the United States, it is high-end manufacturing. It’s not just new Intel plants that have few workers anymore. Adidas has set up a new shoe factory in Germany that is run almost entirely by robots. It will open a similar one near Atlanta later this year. And the few workers in these factories tend to be highly skilled technicians and software engineers.

You can’t turn off technological revolutions. Nor is there a quick fix to stop business from going to other countries. Tariffs on China will simply mean that production will come from some other developing country.

The best approach to the world we are living in is not denial but empowerment. Countries should recognize that the global economy and the technological revolution require large, sustained national efforts to equip workers with the skills, capital and infrastructure they need to succeed. Nations should embrace an open world, but only as long as they are properly armed to compete in it. And that requires smart, effective — and very expensive — national policies, not some grand reversal of globalization.

Read more from Fareed Zakaria’s archive, follow him on Twitter or subscribe to his updates on Facebook.