It has been discussed that one of the alternatives for Trump to keep the presidency is that...
Republican legislators in states like Pennsylvania would invalidate the electoral results and simply award their electoral votes to Trump (source)
I just read on this site that this is not possible:
One question has been: Can a state legislature substitute its judgment for the will of the people by directly appointing their preferred slate of electors after Election Day?
The answer? No. State Legislatures Are Prohibited by Federal Law from Usurping the Will of the Voters After the Election.
According to this recent Q/A it seems that the quote above is correct, state legislatures cannot do that.
However, if that's correct, how is it possible that a senator (Lindsey Graham, who by the way is a lawyer) has discussed this alternative and several media networks (CNN, Vox, MSNBC etc...) commented on it as if it was legal? Shouldn't a senator and several political commentators know better?