* Skip the hashCode checks because it iterates over the string anyway.
* Compare type and dnsClass first because they are cheaper.