Is there more information that you haven't published?
There are plenty of reasons to choose a less qualified candidate that don't involve gender discrimination. Price. Nepotism. Change in spec.
You're obviously upset about this, so I know this won't be music to your ears, but without more evidence this seems like conjecture.
Considering how much discrimination and harassment women have faced in the tech industry over the years I think there should be a reasonably high bar before we start letting conjecture put a brake on progress.