> Society has no legitimate interest in which gender does the work
That's not really true. If all women chose to raise children instead of working, many products would have poorer design due to lack of diversity in ideas. And if 95% of women chose not to work, the 5% who want to work will have a harder time in many respects.