* It's hindsight to say China' embrace of authoritarianism, nationalism, and expansionism was inevitable. Even around ten years ago it was a much different place, with much more freedom of expression (you could find fascinating discussions of democracy by leading figures on Weibo, for example) [0] and a slow process of liberalization. And if it was an error of foresight at the time to assume that the then-current trend of liberalization would continue, it's an equal error to assume the trend of today will continue. By far the best outcome for the people of China, the region, and the world is for China to liberalize; a global contest would be very damaging and expensive; a war could destroy several civilizations, including the U.S. While it would be foolish to ignore current trends, it has proven equally foolish to accept them as an inevitable future and to let the bad guys dictate your values and the future.
* The people of China are not the government of China; it's difficult to oppose the latter without hurting the former. The people deserve freedom, human rights, food, shelter, and prosperity and the things that go with it. China's economic growth arguably has lifted more people from perilous levels of poverty than any event in human history, and they still have a ways to go. If the West didn't trade with China, that never would have happened.
* Of course, the West has profited immensely from China joining the global economy.
[0] China Digital Times (CDT) used to carry many of them, possibly still available in their history/archives. https://chinadigitaltimes.net/