I know this post is old but I found a solution to compare which Sense is which and keeping a reference comparison at the same time. Just create a macro and do the reference comparison inside it.
And then you call the macro like this:
This is gross, I know… but at least you do not compare class names with strings but with references.