Yes. It's a gift, not a donation. You can't write off $10 to the homeless. In the giver's mind it's a donation but not technically afaik.
Even within the legal context of one country, you may for example be "a resident" by immigration law while "not a resident" by tax law, or vice-versa.