as far as number of STEM graduate etc quality over quantity, US grad school are still one of the best, also most foreign student graduate in US including many from china/india want to stay in US and end up working at various US companies. Looking at AMD/Nvidia/Intel, most engineer are from foreign country. Most STEM professor are foreign born. One of the biggest US advantage is able to absorb many talents from all over the world.
It's kind of 'interesting' that when the US woos foreign expertise its an "advantage" but when China pays top dollar for talent its some kind of conspiracy.
It's also ironic that "free trade" is so 'selective', I mean if talent starts getting drawn to China is "tariff man" going to slap restrictions on that too?
The mere fact that you say "most STEM professors are foreign born" pretty much says everything about apparent US prowess in technology and engineering doesn't it? If your only advantage is to throw cash around to lure talent rather than grow your own there will come a day when someone else who has more to spend will trump(sic) you!
Taihu light was basically China giving the US the finger when it prevented exports of advanced microprocessors. On one hand the US bitches about China not buying enough from the US on the other it slaps restrictions on what they can buy literally forcing the dollars to be spent within China,
It's not d*ck measuring contest on China's part its the same reaction the brits had when the US took all their atomic research used it for the Manhattan project then had congress bar access to the results and further co-operation, well the brits just went ahead and created and exploded their own nukes, it took almost a decade and a lot of money but they did it anyway! Pretty much the same here, don't need your blessing or help to get the job done!