Why Can't the Dictionary Find Card 1042? Good Keys

Find a member's locker from the card scanned this morning, when both of the gym's branches have a member 1042: why the card object, the member number alone and equality on its own each fail, and how to make your own type a key that works in your language.

Updated

Cheat sheet: Why Can't the Dictionary Find Card 1042? Good Keys
Category
Data Structures
Level
Journeyman
Tags
data structures, Dataclass, Hash Code, Immutable Object, Record Class, Record Type, Value Equality