Edit: I do think that corporations are able to write off fees and services associated with collecting the donations such as technical and administrative costs though its likely very small in comparison to actual donations.
More likely the donations help with employee and customer retention/morale.
It appears as of 2021, you are correct. I still suspect funny business going on but I think you’re right about the taxes.
https://www.usatoday.com/story/news/factcheck/2021/06/10/fact-check-false-claim-checkout-charities-offset-corporate-taxes/7622379002/
Edit: I do think that corporations are able to write off fees and services associated with collecting the donations such as technical and administrative costs though its likely very small in comparison to actual donations.
More likely the donations help with employee and customer retention/morale.