Actually China is trying to take over industries that Taiwan has specialized in so that if they did invade Taiwan there wouldn't be a global uproar over a parts shortage.
Nobody is really upset with Russia invading Ukraine because people can still buy their usual consumer goods. So in the eyes of most of the world Ukraine is just some minor sideshow.
However if China invaded Taiwan and people couldn't buy their favorite phone, laptop, videocard, etc due to a parts shortage that might raise a negative worldwide PR response towards China.
To mitigate this the Chinese are trying to achieve a situation where they can say "hey don't worry about the war..we can supply all the needed chips/parts that Taiwan used to supply".
To counter this the US is simply throwing stumbling blocks in their path to slow them down...like having ASML stop selling them chip making equipment..etc. Telling Taiwan to stop replicating their plants in China as they are just
shooting themselves in the foot in the long term.