We cannot compare them by values, because that gets `hash of unhashable type` for the prime use case.
Fixes #5410