I think you give doctors too much credit here.
I will say that from direct family and friends experience, a lot of family doctors are not aware of everything that's out there, particularly older doctors who may not be keeping up with new developments, and even more specifically women's health advancements..
Do your own research and find products or drugs that might work for you and then bring that to your doctor for a conversation about whether or not it could work for you.
That's where the marketing comes in for the public. Yes it works for the drug companies too, but if there was some law that meant no one could advertise or talk about these, we would be counting on our doctors to be always aware of all the newest things, and that's just not the reality.
If you sit around waiting for your doctor (who has hundreds, maybe thousands of patients) to bring all the right solutions to you, you're not going to get the best care you can.
So yeah, I agree there's challenges with marketing these products, but it's not a clear cut situation.