Do you think I was being insensitive to my friend?

My friend (let’s call her Kaylee) was saying it’s been five months since her mother passed away and is hurt still. I told her this, “My mother died six years ago. How do you think I feel? Your mom’s death was expected and mine died unexpectedly! Not everything isn’t about you.” Our other friend (let’s call her Sydney) told me not to blame myself and she is there for me. I told Sydney thank you so much. Kaylee said she blames herself for her mom’s death but told me it wasn’t her fault. I ignored her response.

Do you think I was being insensitive to my friend?
Post Opinion