Simplified Candidate::hashCode() for speed