I don't buy that at all. As long as the argument is based on science, there's no reason you can close your ears to other fields of study that could affect your own.
Keeping your mind open to other fields as a researcher doesn't mean, nor is reliant on, having to accommodate casual opinions over dinner.
Do a search for the Swedish gender equality paradox.
I've read about it, I'm not convinced. If gender equality overall was the main culprit for gender inequality among professions we should see a difference between similar European countries with different levels of equality. According to the figures on the web page of the book popularizing the theory, the UK is far less gender equal than Sweden. Yet, the UK seem to have a lesser percentage of female engineers than Sweden. Just to name one example.
What seem more plausible is that inequality tends to correlate with development. The less time a country has been "developed", the less gender equality there is. But being "developed" recently also mean that you have less cultural baggage.
Sweden is an old engineering culture dating back to at least Alfred Nobel (of Nobel Prize fame). Ericsson was formed in 1876, ASEA in 1883, Volvo in 1927 etc. It also avoided the second world war, when women in other countries "got their break" in technology. And has since the 80s had one of the strongest informal computer cultures in the world. This is obviously quite different from an emerging economy were much of the industry has formed in recent decades.