Global competition exists. If US companies can't hire the best, others will. I hope you don't assume that all the best workers/researchers are born within US borders.
Do you think the average H1B or other visa holder in STEM is among “the best”? I’m forced to hire non-American engineers (contractors) because my company is too cheap to pay for and commit to paying American workers full time for a couple of years. There are certainly a ton of qualified Americans who can work for us (fully remote) for not much more money, and their native English skills would make them objectively better at the position. I would even hire juniors straight out of school, but the corporate bs gets in the way.
I don't think countries should hire the best. Pretty good should do. They should foster a greater sense of community within their borders. Now, I'm not against immigration. I myself am an immigrant. But I think there's too much global fluidity and not enough attention paid to taking care of one's own.