Simple hash compare.