is checks object identity (id(a) == id(b)), whereas == invokes __eq__ for value equality. Always use is only for singletons like None, True, False—never for numbers or strings where interning behavior is an implementation detail. Equal objects (a == b) must produce identical hashes (hash(a) == hash(b)), which is why mutable containers like list/dict are unhashable.
Follow-up Interview Question · Why does Python set __hash__ = None automatically when a class defines __eq__?