Pilots aren't discriminated against because of their skin colour, ethnic origin, religion, what football team they support.........
The most likely reason they failed is due to a lack of command of the English language. No matter how bloody good a pilot you are, if you can't communicate effectively, how can you expect to manage the operation as a Captain?