What Taiwan war is, is entirely dependent on how powerful China is. If China becomes 2 times US gdp in a few decades, gets overwhelming military power in its region, then there is no way US is willing to bet everything on a guaranteed defeat.Frankly, anyone thinking that a Taiwan war is anything less than a no-holds-barred fight to the death against the US and all of its allies in the western Pacific from t0 is not worth engaging seriously. At this point it's like arguing with a flat earther.
There's no politics, no if X then Y, no what Z thinks. It's maximum, unrestrained violence from the first instant.
If it happens now for example, there is enough anti-China hatred and superiority complex in US and Japan that they probably think they can still win, which means if it happens now, it could become a region wide pacific war 2.0.
China's goal will be delay this war as long as they can, to gain a more favorable power balance.