Capitalism is an horrifically wasteful system that also lifted a billion people out of poverty in the generation after the fall of the Berlin wall. Capitalism in economics, as with democracy in politics, all the known alternatives are worse. The famine caused by Mao’s Great Leap Forward killed 15–55m: https://en.wikipedia.org/wiki/Great_Leap_Forward#Deaths_by_violence.
Ask any Chinese whether they’d prefer Mao’s China of 1976 or today’s China of Evergrande default, Alibaba, Meituan, JD, Pinduoduo and Tencent and the answer would be the latter.
Stalin’s Holodomor killed about 7–8m with widespread cannibalism. The originator of the term genocide, Raphael Lemkin, called the Holodomor a genocide.
Was liberalism lucky to have Stalin’s monstrous regime to do 7/8 of the fighting and dying to defeat Nazism? Absolutely. As always, history is a tragedy that forces choices between bad and worse. Xi Jin Ping is less bad than Mao, Putin less bad than Stalin, Stalin less bad than Hitler, Hiroshima less bad than most of the counterfactuals (a Soviet invasion of Hokkaido, hundreds of thousands more Koreans, Chinese and Indonesians killed by their Japanese occupiers, a cold war fought with no atomic vaccination mark).