A long legal battle with your spouse is mutually assured destruction.
The key question to ask yourself is "how does this benefit my kids?"
For the people planning to get married, understand that 50% of marriages end up in divorce of separation, and the median duration is about 8 years. You usually not have much to win by getting married. Plus, divorce rates tend to go up.
If you are already married and plan to stay married, watch this video. https://www.youtube.com/watch?v=eyty0xb7IMM