Although usually well-meaning, these sorts of remarks can really tick you off!
However, what some people have trouble understanding is the fact that while divorce, however painful, is basically a choice, death is not.
In a divorce situation, you may wish your ex-spouse was no longer around, but he or she is, in reality, somewhere out there. Still alive.
Death, as we say, is final.