I don't know what that has to do with rape, but: gynecologists see the least attractive and least sexy aspect of women. Ninety-nine percent of the women they see are NOT NOT NOT in the least bit attractive. Believe me, looking at the underside of an overweight middle-aged woman, or a pregnant lady, or a grandma, with a bright light shining on everything, sampling the various excretions and diseases there, is absolutely not sexually exciting. So don't worry, the OB/GYN is not dying of desire while he's sticking a speculum up your wife and withdrawing a smear to examine for cervical cancer.
But when they get out on the street or in a normal sexual situation, they still find women attractive again and respond in normal ways.
Your reply is soooooooo spot on! What kind of doctor would get sexually excited at the sight of a woman in stirrups under a bright light? That’s one of the reasons women hate going to OB/GYN - it’s so deeply embarrassing.