Elements of different types cannot be compared (or to say, unspecified).
Therefore, you cannot compare integer 1 with string "a".
Since a set requires unique elements, hence each element should be comparable against with each other.
There is one exception that, an element of "type" model value can be compared against other elements regardless of their type. The value is always false.