Oh, the other thing is that what you are looking for will change over the course of your career. Early on, you need to work with people who can effectively mentor you. Your direct boss and the technical leaders on your team will matter, but the rest of the company can be kind of terrible and it will probably be fine. Once you start moving into technical leadership or architect roles, the additional work you probably need to do to have an impact in dysfunctional, sexist organization will be a much bigger drag on your productivity and moral. On the up side, by that point you will have the skills and resume to pick and choose better organizations.
I believe that noticing when that transition happens and swapping companies is key to persisting in the industry.