He is not acting logically, at all. Had he actually apologised he probably could have kept his job. Had he stopped being an asshole any of the times people tried to help him be less of an asshole he could have kept his job and maybe people would have defended him. Instead, he had been so awful for so long that when people came forward with his latest bullshit defending his friend over the child his friend committed statutory rape with, we all knew that it was in character for him.
Imagining his (incorrect, head canon-fueled) pedanticism is “logical” is an insult to logic.