Use native hash_equals if available.