The U.S. should not got to war with China to defend Taiwan. It is not our job to defend everyone who is threatened.
In Taiwan's case we have a treaty with them that we will protect them if they are attacked.