Graduates of the Indian Institutes of Technology , IIT’s, (a small minority) are top notch. These are the top tier talent of Silicon Valley. Eg Amit Singhal, who wrote the modern version of Google search before it got corrupted by politics. There are others who have founded unicorn companies ( Bipul Sinha of Rubrik, Jyoti Bansal (AppDynamics) etc..and many others. The bulk of the H1B imports range from mediocre to garbage and plenty are downright fraudsters.
I have known many IIT grads. Maybe I was lucky. Yes they tend to be excellent.