The assumption here is that the US would go to war to keep China from becoming the global superpower
I personally don't want to live in a world where China is the global superpower. I also think nuclear war is a worse alternative (and I think the US agrees) - but I hope Western countries understand they need to build (energy, civil infrastructure, compute, manufacturing, etc.) if they don't want to pick between these two options.
You already live in the world where China is the global superpower. Imagine for example, China and US trade halts completely tomorrow. Who do you think would realistically come out ahead.