My own anecdotal observation for Norway matches this. Norway is the top of charts regarding gender equality. Yet for example, family lawyers, a highly paid profession, here are mostly women, a complete reversal of situation that was 50 years ago.
In software development the gender inequality increased during the last 20 years especially if one accounts that many women in IT here are immigrants. They find it is easier to get a job without good knowledge of Norwegian (in IT in Norway English is typically enough) even if such jobs are not something that they prefer all other things considered equal.
This is an interesting low-blame description of a phenomenon that might otherwise be described as discrimination because of a hostile work environment.
A person on average tend to be more comfortable and confident in decisions if its mimics behavior of people that look/are similar to themselves.
The teaching profession in Sweden actually start out with almost 50/50 during the first year at university. What the Swedish study found was that as students had setbacks, the students that decided to quit was mostly men. By graduation time a large portion of the male students has quit. Same thing occurs when people start seeking jobs, after the first year, second year, third year and fourth year. At the end the wast majority of men are gone from the profession, most citing "culture mismatch" and not feeling that they belong.
I find this theory much more plausible explanation than hormones, and it also explains why removing gender roles might increase gender segregation. If a person is uncertain where they fit, making a similar decision to other people in the same situation will on average feel safer. It also explain why mentor programs are one of the most effective tactics to combat gender segregation.