Ladies, Tyler Cowen has done us a solid. He included John Stuart Mill as a contender for the greatest economist of all time in large part because of his insights on gender equality.
I’m short on time at the moment. I’d like to do a better job than this, with more nuance about Hayek, but here’s the most I can do this week:

More here: “John Stuart Mill on women, as explained by TC“
Or read the (free) GOAT book. I might say you should just jump to the Mill chapter, but it makes more sense in context if you read the whole thing.