Depending on what country you are in, this is illegal no? Not hiring someone based on their ethnicity who is otherwise qualified/the best candidate is racial discrimination, regardless of what that ethnicity is.
In Brazil this is illegal, but when I saw this happening and told the government about it, I got an e-mail from a female judge, saying that hiring only women is fine because it "corrects the distortions", despite it being against the constitution... This is anecdote but I can say from personal experience that companies can get away with it.