7 Wonders

If a card is mistakenly played that the player does not have resources to complete, is the card discarded for no reward?

That card can either be turned in to a Stage of the Wonder if the player has resources for that or to 3 coins by discarding.