Not quite, because not every woman will vanish from work for 2-3 years.
Such laws make an employer indifferent between a man of quality Q and a woman of quality Q + P(taking leave) x (cost of leave). Whether or not hyper-productivity is required depends strongly on P(taking leave) and the cost of leave.
Such laws make an employer indifferent between a man of quality Q and a woman of quality Q + P(taking leave) x (cost of leave). Whether or not hyper-productivity is required depends strongly on P(taking leave) and the cost of leave.