If you itemize deductions and donate to charity through McDonalds, you get take the deduction, not McDonalds. You probably won’t, but it’s your deduction to claim.
If you’ve shopped recently at your supermarket, there’s a good chance you faced a choice at the checkout counter: Whether to give to a charity. But like so much else these days, these giving opportunities have become controversial.