Fix ESR record duplicate detection to not detect itself as a candidate.