Evaluate dif for inequalities only if arguments are reals

fixes #8288
@asmeurer