Is buying anything with a debit card just dumb? Are ccs just advantageous in every way?

Is it dumb not to get cash back on your credit card? Also, easier to dispute charges, etc. I've been using my debit card my whole life.. I'm so stupid. Im going to take a financial literacy class or go back for an associates in finance or something. I'm too old to not know shit like this. Even filing taxes, I know I'm not maximizing my profits or whatever. Just ranting. I'll be lurking here more..