the US can't compete with China's artificial suppression of the Yuan price to help export prices, or the high levels of exploitation and lack of rights & regulations to benefit Chinese workers.
Of course, it can. The solution would be to depress the USD. It's just that the US decided it is more profitable to extract value by holding the reserve currency.
And in this case there is no US product to buy. US semiconductor manufacturing simply cannot compete on the global stage, hence the need for this investment.