This is a known problem and has affected me. I work as an SE, and one time I interviewed for a company that had American/Caucasian recruiter and hiring manager that I did fine in the interview with.
Then came the technical team. Every single one of them Indian.
I knew I could do the job because it was using technologies I had used for a long time. I would have been productive on their systems within 3-4 weeks of starting.
They were not going to let that happen. I was doing real-time live coding and they were just not going to let me succeed. Every time I would implement what they tell me, they would say its wrong. Would not say why. Would even say: "No, you can't use that library." No reason, nothing. Nothing specific about what's wrong with my solution.
Near the end of the interview, we socialized a bit and I found out they were all from the same village back home in India. I hung up the call after we said our goodbyes and it immediately hit me....
I was the H1B requirement interview. They needed to interview a domestic citizen candidate and make their claim they could not find a suitable domestic candidate and therefore needed the H1B.
The rejection email was interesting. It did not say I failed the interview or that I was unqualified. It simply said that I lacked experience with a specific "optional" item on their list of items on the job description, and the hilarious part was that thing never was discussed or came up in any of the interviews.
Would bet you my life savings they probably got one of their friends or family members from that same village in South India that they were all from.
They are known to do this, and they have zero shame. That's why I call all the people who call people like me racist and that I need to let people in the country to work with me as sui-idal empaths/sympaths. They don't realize that the very people they want to allow to come in and take our jobs do not share the same view. Those people will let one into a lead or management position and get themselves laid off if they continue down that path.
Indians don't share that same value of openness of culture in the workplace. They want their own kind.
Don't let them get into management.