I think it depends on the situation. I know, that's obvious.
I'm close to one split couple with two kids and if they hadn't split, I don't think the mother would have survived the toxic environment. She turned out to be a fantastic single mom. The two kids are now very well adjusted, polite, thoughtful, and thankful young adults. She worked her ass off for 15 years to get to that point, but I don't think she'd change a thing. In their case a split was absolutely necessary. BTW, the father is essentially a deadbeat dad and the kids figured that out all on their own and it didn't take long.
I know another couple who split, both remarried,, and now each have bended families. They had a very positive and friendly agreement about how they would "share" time, etc with their child. This relationship has managed to flourish for years. Both new spouses knew what they were getting into and are fine with it. Lots of open and honest communication from all parties to make this work. This child (now in late teens) is very fortunate. The focussed their energies on a solution, it just happened to include splitting up the marriage.
So, I know of two cases where the split worked out for the best. Not saying it's always the best solution, but I do think it's better than a stress filled environment.