Memory mostly keeps the most intense moment and the ending, then averages them. A painful procedure that ended gently is recalled as better than a shorter one that ended at its worst. How something finishes can rewrite the whole story you tell about it.