I sympathise with OP.
I came across an American blog some years ago called, "Why men become gynaecologists". There were excerpts from male gynaecologists on their perspectives, and they included confessions of sexual attraction to patients and misogyny.
According to a 2024 study published by the JAMA Network in the National Institute of Health, gynaecology is the second highest litigated discipline. It also has the highest rates of sexual misconduct allegations made by staff (particularly of trainees despite 61.7% of the workforce now being female) and the highest rate of malpractice claims and formal complaints filed by patients.
This is albeit an American study and I am aware that the NHS has also been highlighted for promoting a culture of medical misogyny throughout all areas of reproductive care (which also include female-led disciplines like midwifery) but it's notable that in a discipline dominated by women, it has the highest rates of sexual misconduct allegations.
These are not spurious claims or just my "opinion". These are findings published in a medical journal. I think that if female trainees are finding themselves the subject of sexual harassment by senior male gynaecologists, it tells us something about the mindset of some of the men practicing in that field.
Not all male gynaecologists will be abusers. Some may be caring, empathetic and provide a good service but I think it's ridiculous to suggest that men who work in this profession are somehow "immune" to seeing vaginas on a day to day basis.
I recall seeing an online blog where men shared their views on this topic. Most of them agreed they were sceptical of claims that male gynaecologists would never get turned on when examining a fully or partially naked woman. There is also an undeniable power dynamic here. A woman in this situation is vulnerable.
I accept they are not experts but they know more about male biology than we do. While male gynaecologists may indeed be professional, to quote one of those commenting, "medical training cannot and will not "undo" centuries of biological evolution". I wouldn't necessarily believe they get turned on all the time, but I think it is highly unlikely to suggest that they NEVER get turned on and are somehow professionally "immune".
As for discrimination, some professions can be exempted from equality laws if the circumstances can justify the need for it. I'm not going to engage in a debate around that but I would definitely never choose a male gynaecologist.