You're probably right.
Being with someone who just lost a loved one would be uncomfortable for me too, but just standing around and not comforting them with words of condolence (even if they're trite or dismissive) would make me feel even more uncomfortable and kind of selfish, but that's just me, although I do like the term dirty harryism.
BTW, I'm not criticizing you Art. I'm just explaining my philosophy of stoicism, and how I would feel under similar circumstances.
Not saying anything at all would also be dismissive of the person's pain, like their loss wasn't important enough to at least comment on it, even if it's just, "They're in a better place," or "At least they're not in any more pain," or "If you need anything don't hesitate to ask," which also seems trite to me, but I would get some comfort from it.