With a credit card, the money never leaves your account in the first place, at least until the bill is due.
Regardless, I know I'm legally protected with any credit card I use. With a debit card, it depends on the bank's fine print as to how disputes are handled.