The end of a marriage (where both participants continue living) and a cancer death, are not comparable.
Your "if you're not going to stay in a bad marriage until you physically die, what's the point of marriage?" viewpoint where marriage is permanent xor utilitarian is a false dichotomy.
Divorce doesn't mean that the participants failed, or that they entered into the marriage simply out of utility.