Elector Nullification (ie, they cast their vote for a 'replacement candidate?')? Legal, yes (except for those states that require their electors to vote by the expressed will of the people), but if it happened, the country would blow apart. And any political party that tried it would collapse for all time.