Well, you can use univalence to prove that isomorphic groups are
equal, for instance, so it’s not just about elements of U. (A
consequence of) univalence says that if two structures are isomorphic
(for the right notion of isomorphism for these structures), then they
are equal.
The thing is that in order to apply univalence to deduce that two such
things are equal, you have to know what you are talking about : you
have to be very clear about the *type* of the objects you want to
apply univalence to.
For instance, you could ask the question: Is N equal to Z?
The answer to that question depends on what structure you are
(implicitely) considering N and Z to have. For instance if you
consider them as sets, or as pointed sets, they are equivalent (hence
equal), but if you consider them as monoids, they are not.
Another example: Is 2Z equal to Z?
If you consider them as groups, then yes. If you consider them as
subgroups of Z, then no. If you consider them as topological spaces,
then yes. If you consider them as metric spaces, then no.
The thing is that when a mathematician says "A is equivalent to B", it
is often up to the reader to figure out what A and B are considered
as, in order for the statement to be both true and useful. For
instance if someone talks about 2Z, they probably see it as a subgroup
of Z, because it does not make much sense to consider 2Z only as a
group (why not just take Z instead?), but they might as some point
mention that it is equivalent to Z as a group. If someone talks about
Z[i], maybe they mean the abstract ring of Gaussian integers, or maybe
they mean the subring of C, strictly speaking it’s not the same thing
and it will depend on the context (and it could very well go back and
forth between the two different interpretations, even in the same
sentence).
In your example of sup({1,2,3}) ≠ sup({4,5,6}), the reason is that you
can only apply the sup function to a *subset of an ordered set*, not
to an arbitrary type. Therefore in order to deduce that equality, you
would need {1,2,3} to be equivalent to {4,5,6} *as subsets of N*,
which is not the case, even though they are equivalent as sets.
So if your wife asks you to buy A = { sugar, flour, eggs, milk }, it
is likely that she did not consider A as simply a set which happens to
have four elements, but as a sets of things that are needed for a
specific purpose (cooking, for instance). You could still use some
form of "univalence". For instance if she asks you to buy white sugar
and you buy brown sugar, it might be fine depending on the intended
usage. If you buy brown eggs instead of white eggs, it’s most likely
ok (unless they are meant as decoration, maybe). If you buy margarine
instead of butter it might be ok. If you buy gluten-free flour instead
of all-purpose flour it might be fine or not, again depending on the
intended usage (for thickening sauces, both should work, but for
making cakes, less so). If you buy whiskey instead of ice-cream, it
might be fine if the intended purpose is to have some comfort food for
when you’re feeling down (and assuming both serve that purpose equally
well).
So your job, as the grocery-shopper, is to understand the (implicit)
intended purpose, in order to be able to know in what cases you can
consider two items to be equivalent. And it’s only when two items are
equivalents with respect to the intended usage that you can apply
univalence and substitute one for the other.
Guillaume