Well, if you buy into very gendered notions of conversation (Men are from Mars and that jazz), you actually exhibited an aware, feminine response. The male approach would be to try to "solve the problem" which keeps the focus on her, but may not respect what she's actually going for. The female approach would be to offer a similar narrative to signal that she relates to the story.
Now, I am NOT buying into the gendered aspect of this discussion, but suggesting that relating a similar story of door awkwardness isn't about story topping or egotistical redirection, but actually an act of empathy and social acuity. Though I'm sure context is key here and there are ways to do it that make it the one and ways that make it the other, and I definitely don't have the social skills to know which is which.