'"I have done that" says memory. "I cannot have done that", says pride and remains inexorable.
Eventually - memory yields'. (Beyond Good and Evil)
Today, of course, we would refer to cognitive dissonance, revisionism, et al but Nietzsche preceded today's psycho-mumbo-jumbo-babble.