I keep hearing that this is frowned upon, but I cannot help it. After I share, I circle back and explain how and why I connected the two stories to try to recenter the other person. Is this annoying? How do you want ND people to respond in that case?
Everybody does this ND and NT alike, it is natural to want to share how you can relate to another's situation.
Depending on the context, it can be seen as trying to "one up" somebody else, it really depends on the person and your relationship. I would say generally the closer the relationship, the more likely they do just want to vent and need a friend to listen.
Personally I would almost never get offended if someone shares how they can relate to me, and probably actually prefer it, but that's just me.
Neither NTs or NDs are a monolith.