The fact is that 99% of the people in the media now "defending" Comey would want his head if he were behaving as a good FBI director under Trump after what they blame him for with Clinton.
It can be perfectly consistent to say that someone should resign and then to object when someone fires them. If you can't imagine a scenario in which that makes sense, then we're not having a conversation; we're just talking at each other.
Look, just because someone is an asshole who doesn't play by the rules doesn't mean that the rules don't apply equally to them. That includes the protections they offer as well as the penalties they impose. James Comey broke the rules by circulating what turned out to be false news about a candidate during an election cycle. He shouldn't have done that. But the President was wrong to fire him, too, because Comey was actively investigating him for alleged corrupt ties to Russia.
So people in the media called foul in the first instance and called foul in the second. They're not defending the man; they're defending the notion that the FBI should be apolitical and independent. It would be inconsistent not to decry both abuses.