I'm sorry for your loss.
I will note that I'm trying not to think of her death as a loss. It certainly is in many ways for grandkids and others who were just starting to get to know her. But for the rest of us, I like to think we have a part of our deceased loved ones with us that we now have the responsibility to cary forward.
Same as people saying things like "Don't say no one loves you, because I love you <3" but it's in a forum like this, or on Reddit. You don't know them. you don't love them.
Or did they just short circuit. "Dead relative -> Say sorry for your loss". Like an AI bot.
It's the second one.