The contenders for the party's leadership need to balance regret about its failures with pride in its successes.