I was told this the day after my father died. I was walking to my college class just trying to act normal. Wish I would have responded appropriately but being shell shocked over bigger problems prevented me.
The correct response, and ive actually done this becausebim a complete edgelord and its my default was "you're right. Grandma was a racist bitch; I should be happy she's dead. Thanks mister!'