Gresham's law only applies if the government forces the same value on the "good" and the "bad" money.
Hypothetical example: Gov't mints new coins for circulation with half the raw material value in it than the coin it replaces. People will start hoarding the old coin and take it out of circulation completely if the raw material value goes above the nominal value.