Don't try to match lifted equality operators on same reference types
Nested partial type inside generic class can have base type defined later than current type inflation happens. Fixes #13289