Which of the following solutions is better for the following goal:
Cut losses from a possible broken vending machine.
Insert your cheapest coin first.