The older generation weighing in....
When I entered the workforce in the early 1960's things were somewhat better. But yes, want ads were listed "jobs -men" and "jobs - women". Archaic Neanderthal thinking? Yes, surely. But most places did not insist on a physical exam, and if they did the exam did not involve examining one's female parts, it was basically a check of ears, nose, throat, and heart and that was that. I do not recall ever having to take off my clothes, having blood drawn or peeing in a cup for an employment physical
But think for a minute....back then we didn't have to take a test to prove that we didn't use illegal drugs to get and keep a job. Nowadays it seems like everyone has to prove that they are not engaged in an activity that is illegal, even though there is no evidence of any type to indicate that they are, to get hired.
The only real difference is that subjecting women to medical exams for "female weaknesses", whatever the heck those might be, is discriminatory unless they also check men for "male weaknesses". At least with drug testing everyone is treated equally and all are considered guilty until they prove they are innocent.