I am not dismissing anything, I just don’t see what problem you are trying to solve here (in the narrow sense). Sorry, I did not look at the repo.
Depending on the context, something like #31630 linked above may be your best option, or a dictionary type that uses different hashing for mutable and immutable objects.
Probably you are aware of this, but the solution currently getting most of the attention is