I know but what if TSMC had to apply possible US sanctions against China? First, TSMC would be a US company, which could give the USA an excuse to tell TSMC to apply sanctions against China. Also, the USA could take the US factory.
The US already has that ability to coerce foreign companies. TSMC buys chip making supplies and equipment from US companies, and there's been discussions around requiring foreign companies using US technology to obtain a license to not supply chips to Huawei or risk getting cut off from the US tech network themselves.