The common words you say to try to offer condolences

I’ve heard them so many times. If I had a dollar for every time someone has said this to me, it would pay for my graduate school education, at least.
Let me know if I can do anything to help.
I’ve said this myself to people before. It seemed like the right thing to say. I genuinely felt bad for their pain and wanted to do something to make it…