Credit card debt or car loan

I have a car loan of $5700 at 7% interest. I took on some credit card debt last year due to several small emergencies in the amount of $7400. The credit card luckily has 0% interest until January of 2026.

My plan was to pay $700 a month towards my credit card and pay it of by November before the interest hits.

However, I know Dave Ramsey says to pay the smaller debt first. My question is, should I pay my car off fist since it's the smallest debt or should I pay my credit card off first to avoid interest?

My thinking is that my car payment will remain the same and the interest is lower, so I should get the credit card taken care of before incurring interest.