Debt is not necessarily bad. Most people borrow to purchase a house or vehicle. What is bad is unmanageable debt: you are struggling to make payments. Most of your income is going towards debt.
A credit card and debt are not the same. If you use a credit card, and pay the balance each month, you are not in debt.
There are times when you must have a credit card. Renting a vehicle is just once instance where you must use a credit card.