EQ/NE do not fail in case of a Comparable mismatch and apply a specific CharSequence equality check

Issue: SPR-11708