Of course, being an affable buffoon John can look at and say "Thank GOD that that ain't ME!!" isn't the only reason Ted is still in his address book. Simply put, John needs to have someone in his life who can tell him that no, he isn't an indolent, puerile, passionless buffoon husband without empathy, remorse or the ability to learn from experience screwing his life up by insisting on not admitting that everything he believes about women and their role in the world is self-serving horseshit he should be ashamed to have ever believed. The other men he knows tell him to his face to join the human race; not good ol'No Normal Woman Will Have Him Ted. Ted is right there stuck in the dead and best forgotten past with him.
Given that Ted is the only person in the world who honestly believes that ass-scratching total Piltdown Man is far too generous and understanding, it would seem that his leading export is an unjustifiable feeling of superiority. After all, if Elly had found a less moronic meal ticket, John would still be a bachelor on the prowl.