Deductions & credits

It matters because ordinary income is usually taxed at a higher rate than long-term capital gains. I would hope my charitable deductions offset the income taxed at the highest rate first.