Implement `entry_equiv` for HashMap