Apologizing to the mob is more likely to backfire: It's seen as an admission of guilt and that they're right to "cancel" the person.

Yeah, you should apologize before the mob forms. This is much more important for large corporations, if they do a big screwup and apologizes after massive backlash, that is bad, but if they apologize before the massive backlash its much better.