That's not how tax law works in the US. See https://taxpolicycenter.org/taxvox/who-gets-tax-benefit-thos...
The corp is acting as a collection agent on behalf of the charity, they don't get to deduct it as a charitable donation. Even if they did, they would have to then count the money as income, which would offset any tax deduction they would get, giving the corp 0 net tax benefit.