Taiwan is the key part of the first island chain[1] that prevents china from projecting hard power beyond their immediate neighborhood. It is way more important for the American hegemony than Ukraine for example. I really do not think that TSMC is the deciding factor here.