This is unhelpfully extending the metaphor into a straw man. It's simple enough to see the point.
In your example, your ankle is under your control - if you want to exercise it, you can. Your ankle doesn't actively sabotage your body (or if it does spread infection/etc, amputation is often used).
A marriage depends on two people working together to build a life together. If one person is not willing to put in that effort, the marriage fails.
There are, of course, many situations where divorce is not the right answer for that situation, just like there are many situations for which a hip replacement is not the right answer. But it is within the set of potential right answers across all situations. There's no sense in trying to replace what is easily repairable, and there's also no sense in spending your life trying to repair what needs to be replaced.
And it's totally possible to go through life where neither you nor anyone you know ought to get a divorce - just like it's totally possible to go through life knowing nobody who needs a hip replacement, but that is hardly evidence that the procedure is the wrong answer for everyone!
That's also the generation of people who don't go to the hospital because anything hurts. They go to the hospital 5 years later for something unrelated, when it's discovered it's 4 years too late to do anything about it.
There are two ways to think about this.
The first is that once your car gets too broken to repair, you should just ditch it and get a new one.
The other is that once your arm/ankle/hip/liver has problems, you should just transplant a new one instead of doing physical therapy/exercise/eating healthier/drinking less.
In my experience, marriage is much closer to the latter situation than the former.
If you're curious what those "fixes" are for the latter, see https://www.gottman.com/product/the-seven-principles-for-mak....