I think it depends on your situation. I think having kids makes a huge difference. I think a willingness to work on things makes a big difference. The presence of a lover makes a big difference. Also having various assets, businesses and social capital as a couple changes the equation significantly.
My priorities would be to do what’s best for the kids, first. That could mean trying to work things out, but it could also mean separating.
I don’t know what the priorities are after that. It’s really too complicated to know. It just depends on the circumstances.