Determines whether this account has the same identity as otherAccount.
otherAccount
bool hasSameIdentity(Account otherAccount) => identity == otherAccount.identity;