Instance equality check