The only way that China gets an upper hand economically is by selling products to the US and the Western world.
If they enter into a conflict where they are cordoned off, their export oriented economy would crash immediately.
A war between China and USA is impossible to win for either sides, due to both military size, budgets, interdependence, and nuclear weapons arsenal. And this is why it's a cold war.