Blender Python Data (equality works between instances, identity not)
Each time you access object.data it will return a new instance,
however this is a very small data type to access the real mesh data stored in Blender.

Equality works as expected (and they have the same __hash__), so you can put them into dict/set types. You just can't rely on identity. (As with any 2 strings with the same content).