That is a very wise observation. Most of our unhappiness in life results from our dislike of aspects of self, then we project it onto others. We think that divorce will solve this unhappiness. (If only I leave spouse and marry so and so my life will be wonderful). It's usually a surprise that the same issues arise with a new spouse. All this is my opinion based on observations of self and others. IMHO the misery of divorce, the physical, emotional, and psychological damage is not worth the supposed payoffs.
I wonder what is the opportunity cost of divorce not only in financial terms but emotionally and psychologically for the divorced couple and for their children and their extended family, not to mention society in general?