You don't sound like an asshole because you aren't saying bad things about the people who have the least.
It's up to you, you can just, to yourself, write down the words you'll use to write down that you'll ignore them to become more comfortable with your boundaries.
Personally I don't think handing out cash is helpful so it's not about charity it's my advice to pre-plan how you'll respond to be more comfortable than you are in reaction to these situations.
It is a quick escape though to be like "here you go" and move on but also opens you up to "that's it?" I've had that happen even when I said "I don't have cash" well I have Venmo I'm like alright... yeah I don't want to have this mindset but also can't be naive too kumbaya.