YANBU, OP.
It's a reminder how, through sheer luck, some people just end up better off.
The luck of having family to inherit from at all, the luck of them being on good terms with one another, the luck of that relative not needing expensive longterm care, the luck of having a relative with anything to inherit from them etc.
Obviously it's not lucky to lose someone, but if you're losing them either way - it's luckier that they die and you inherit from them because they did have money/something to inherit, it didn't get taken up in care, they happen to be related to you... that IS luck, because you don't (generally) have any impact on those things.
I've got a friend who just inherited a lot of money from grandparents she was estranged from and didn't know were going to leave her anything/had anything to leave, and she's bought a house outright (a small house! Not a mansion, but a house mortgage free). We grew up on the same council estate, making the same jokes about hiding from the Provident woman and not being able to afford having the heating on and getting jobs at 14 to help out our single mums. We've both similarly done okay for ourselves - but we've talked about both being very conscious that our upbringing meant we always had to make the sensible choice and there was no safety net, no back up, we both experienced very shit or even dangerous living conditions in our 20s because going home wasn't an option, we both know we will be helping our mums out financially for life. And now through sheer luck - and it is luck, she's said so herself - she owns a house with no mortgage. She suddenly has that safety net, and it has completely altered her life. She can now take on more risk in her career, because she could always mortgage her house if she needed to free up cash. She won't ever need to worry that her landlord is kicking her out, or have to work as I did a few years ago through a period of severe mental ill health because the other option was to become homeless, because I had no financial safety net. I'd be lying if I said I wasn't jealous of that level of security, much as I'm also delighted for her.