The solution is simple: marry the right person. Then you won't have to get a divorce. Otherwise, it's the best solution rather than live in hell.
Even if you do marry the "right" person, things can change.
I'm glad my parents divorced.
For a lot of clucking self-righteous folks, I think the marriages end a lot earlier than the divorces. Denying that fact while failing to correct it makes for an excruciating misery.