I don’t think China will attack Taiwan. Since Taiwan is not a threat to China, there would be nothing to gain from destroying it; they want it intact. It would turn out like Russia and Ukraine; Russia could obliterate Ukraine but what would they have accomplished?
China will seek to overcome Taiwan the same way they have succeeded in overcoming Biden — corrupt buy out.
Taiwan does in fact have the ability to inflict major damage to China, on an invasion force or China itself. I suppose the vulnerability of the dam is on Xi’s mind, a prohibitive cost.
I don’t anticipate that Red China will attack Taiwan unless the Russians defeat the Ukrainians, which has not happened despite almost two years of attempts. They would count on Russia to threaten Armenia, Poland, or the Baltic States to keep America tied down. Remember that the PLA is untested in combat.