[corlib] Optimize EqualityComparer for common value types. Fixes #18400