The other perspective is that defence is much easier in the information era. If the US couldn’t win against Yemen, what makes you think China could win against Taiwan?
You just have to look at a map to understand that. For starters, Taiwan imports over 90% of its energy. China just needs to blockade trade for Taiwan and the economy there will collapse overnight. Taiwan being an island makes it much harder to US to assist it as well, and US would be acting as the attacker in this scenario because China can launch missiles from the mainland just the same way Yemen does, while US would be forced to move assets from far away.