The way I have described it is if you want someone to make 1,000,000 widgets then an Indian is perfect. If you want someone to design a widget, get an American.
I see it as a culture thing. Multi-generation Americans have an independence and “make it work” built in to their upbringing. Very few other cultures have that as universal as we do.
Having said that, I have work with some excellent Indian developers. But it is a very rare one out of a hundred. For that matter, I have worked with some horrible American developers. Like “three time David” where it takes three installs of his code before it actually works. But it is much more rare here.
I would say younger (30ish) Russians are pretty good developers as a group. Maybe the same anarchy style of personal responsibility is the cause of that.
The USA should make everything in the USA. We need to stop all immigration for decades and put up high import tariffs. Or lose the country.