It's interesting that you post this and that you see a connection between this thread and this book. I think you are tapping into something that has not yet been said outright but is present nevertheless.
Lemme' do the Cliff's Notes version of what I think is in this book.
Some doctors correctly perceive that a capable person, in this case of the wrong gender, will damage their self-esteem.
What they don't ever do is to investigate why their self-esteem is so fragile or why it is even connected to what other people know.
Actually I mentioned that book because the previous poster mentioned surgeons. Also because it is one of the best books I have ever read. I like it so much, I've read it 3 times! So I was "sharing". And I'm not particularly interested in that book because she is a female, rather it is interesting (and shocking) to learn about what goes on in medical school. Also the female aspect is interesting. Basically a "tell all" book about medical school.
But you do bring up a good point which applies to people in any field. People are different. I've worked with the public most of my life. 95% are OK people, 4% are jerks, and 1% will wreck your day!
Or as a police chief once said: "The 5% which cause 95% of the trouble!"