When I was a young, new, stupid, naive grad student, I didn't know what challenges were going to come my way specifically because I am female. I surely learned a lot over the years. In fact, I have already expressed exactly how I felt about it:
Academia tells me that I should stay and make sacrifices for the greater good. I should see the barriers in front of me, and they should be overcome by the force of my desire to be professorial. I should compare what I want to what I can have in academia, and give up what I want. I should see the price of motherhood in academia and elsewhere, and pay it.And furthermore, apparently, I should have put up with my competence being judged less, and with still being offered less salary, so that I and other women could change this system from the inside. In other words, I should endure personal misery, from which I would gain nothing, so that in future, people I didn't even know can benefit.
If women want to be professors, run research labs - that's great. If they are willing to put up with climbing an extra-steep hill, much steeper than their male counterparts, then it's their hill to trudge up. Then, the justification is not future-benefit-for-others, it's that that person really wants a certain thing and is working for it. Fantastic! Go for it, female-scientist colleagues! Kick some ass for me.
But women also make rational decisions to go into careers where the uphill is more equal, where salaries are more equitable, and where people have children when and how they want without their bosses publicly wondering if they're really committed to their careers. At Snooty U, only one female professor in my department had any children- one child, the year she went up for tenure. ONE.
Do you want to guess how many male professors waited for tenure?
Industry has problems. Industry has glass ceilings. Women probably still earn lower salaries on average, are penalized for female-ness, and definitely run against sexist bullshit. Nowhere is perfect. However, in academia, where the turnover is so low and the old-white-guy quotient is so high and the governance on faculty is so weak, I think the opportunities are greater for all these conditions to approach their maxima.
I liked working at Bicycle Company for many reasons, but this was the biggest: I never noticed anybody giving me a hard time for my female-ness. I stood in rooms full of male engineers, all of whom had ten times the technical knowledge I did, and I told them what to do, and they listened, because by God, I was in charge. I had a baby because I damn well felt like it, and got a $5000 raise and a $1000 bonus that year. If there was a price for motherhood, it was the same price anyone would pay for being physically absent from work for eighteen weeks - not a surcharge.
Staying in academia may be an act of love for one's work, but my love wasn't sufficient. It is a rational choice to leave, too.