I think you misunderstand the complexity of the situation. The US would go to war on behalf of our economic interest and allies depending on the leadership, but not likely initiate itat the moment. China is under immense pressure of a different type and may use military might in the future to change it’s power, but both have challenge which make your statement too black and white to be valid. It’s more gray.
The following are all Foreign Affair, but give good long form context to current challenges.
https://www.foreignaffairs.com/china/why-china-wont-give-failing-economic-model
https://www.foreignaffairs.com/china/chinas-real-economic-crisis
https://www.foreignaffairs.com/china/chinas-gray-zone-offensive-against-taiwan-backfiring
https://www.foreignaffairs.com/united-states/why-china-isnt-scared-trump
If you have the chance, can you expand a bit on what you mean?