The only thing Comey did wrong, objectively, is going public with an FBI investigation, when normally they are very private. Also, he went public with the Clinton investigation during the election, but didn't go public with the Trump investigation that started up in the Summer. I'm not sure Clinton would have kept Comey, or just slapped him on the wrist.