Fix discriminator map search in ClassMetadata

Comparison should be identical