I have personally been in hiring meetings where we explicitly chose a weaker candidate who was a woman or POC specifically because they were from that group over a candidate with a strong background in the area. There was a lot of pressure from the company to do so.