TL;DR
To objects/sets are equal if and only if there is a canonical isomorphism/bijection between them. What that is is not necessarily clear, but there is an exception regarding abelian groups accotiated to a field, where the canonical isomorphism is clear up to a minus sign by the main theorem of global class theory[0].