Expose equality check method to reuse and redefine.