So joke all you want, those that do make it to US are rather smart and hard working.
sorry, not my experience at all (20+ years in the bay area and I have tons of experience with indians). they THINK they are good, but the code quality, design quality and attention to detail is far below par.
As an American working in a company with a half Indian workforce, both onshore and off, my experience is exactly what the gp says. The workers who made it to the US were much more capable than the offshore team. I chalked it up to the fact that the obstacles to emigrating went a long way towards selecting for the more intelligent/motivated/organized. At the very least they needed to convince someone to sponsor their H1b. The sponsor takes a sizable risk so they tend to choose carefully.
One of the things I experienced when I first started working with them was an uneasy sense of "If they're all this good and there are tens of millions of them waiting in the wings, we're all doomed in this profession". I'm a reasonably good programmer, but this level of competition is going to burn me out.
Fortunately, working with the offshore team put my fears to rest. Nobody in the company had a lot of faith in the offshore team.