Improved interface equality check.