Qualified Charitable Distributions let you make tax-free contributions from your IRA, up to a limit ($105,000 in 2024), to a qualified charity.
There is no explicit support for this kind of tax-free withdrawal from the qualified funds. You could take taxable withdrawals from the IRA and make corresponding special expenses that are "excludable from AGI." This gets the cash flow right and it also provides the above the line tax deduction.
Or you could remove the amount you intend to use in the QCD from the balance of your IRA and simply leave that amount out of the equation. This prevents the taxable event and it leaves the correct balance in your qualified account, but this approach might undermine your purpose in the QCD if that purpose is related to satisfying some RMD requirements.