One of the best lessons I ever had beat into my thick head was:
No one is ever wrong 100% of the time; no one is ever right 100% of the time.
In my career, I have learned more from people who are generally wrong. Not just from their mistakes but also from their skills. A manager with easily identifiable flaws rose to their position for some reason, usually a particular strength. Do not simply write anyone off.