One way we can solve this and make it right is by taxing overtime more. Men tend to do overtime frequently due to having more time in the absence of unpaid labor work women have to. That overtime tax can be used to compensate everyone equally. While it may not remove all disparity but it will level up the ground without direct discrimination.