Yes it would be better if people tried to work through their shit and stay together if at all possible and especially if they have kids. But sometimes one parent is actually a harmful presence and divorce is the better option for the well being of the kids.   Either way legally forcing people to stay married is not the answer and it’s actually insane.