Of course, if the cashier does not have correct change for a large bill, the other alternative is to wait until enough change comes in. I’ve hung around the counter at a gas station for half an hour before getting enough change to leave.
That was back in my young and creditless days, though. Now I use plastic.