The distinction you're trying to make does not exist. Memory of a similar experience is a potential part of empathy. It, in no way, invalidates or precludes an empathetic response.
And empathy in one situation does not automatically mean empathy in all situations. Humans are funny like that.
And empathy in one situation does not automatically mean empathy in all situations. Humans are funny like that.