There is not and never has been a meritocracy in any workplace ever. The literature on unconscious bias in hiring is incredibly vast. Women also agree that the best people should get the jobs - that would mean a lot more equality in the workplace than we have currently.