Unless the charity is specifically asking for these things, which some do.
We literally just had a drive at work where our goal was to fill up 100 toiletry bags for a local Women’s Shelter, and these travel size items from hotels were specifically noted.
IIRC, there’s a military charity that does something similar.