Use hash for __eq__ method