That’s perfectly fine, imo?
There’s clearly a disadvantage to not having any meritocratic considerations during the hiring process and it will eventually come back to bite the hiring company. That said, everyone has free will and should be completely free to hire whomever they want for whatever reasons they want.