Do these people actually really exist in 2015, and are there organisations that would allow them to behave like that? I've known quite a few hiring managers, and some of them have definitely made stupid comments about "how nice it'd be to have a hot girl on the team" (though equally they might also make stupid comments about hiring graduates - of either gender - to make cups of tea), but none of them, to my knowledge, would ever have not picked a female candidate who was technically up to the task purely because she was a woman.
Have I just led a sheltered existence?
(I guess I'm talking here about SMEs and larger companies; I suppose if you're a tiny company run by a couple of sexist pigs, then any kind of behaviour is allowed to stand.)