It’s possible this doesn’t create a 100% balance, but it’s also not 100% balanced that one partner was able to spend far more time with the children (and usually both parents want to despite what some debate participants will say), and other non financial costs and benefits.
One way to solve this would be to require all marriages to have a pre negotiated divorce agreement with experienced advisors on both sides to discuss what would be fair compensation in case of divorce.