It's ok to learn from and respect people for the areas they hold wisdom in even when they are flawed, sometimes deeply.
Rand was an atheist superstitious about free will—an individualist collectivist about policing.
Socrates's dialectics demonstrated the majority as often ignorant, and then voluntarily deferred his will to their rulings unto death. He openly defied their demands, then refused exile, accepting their death penalty.
Seneca condemned the corruption of power, expressed poverty as virtue, and preached human equality—then participated in Nero's murderous court, amassed enough wealth to feed Rome for a year, and voluntarily self-deleted when ordered.
Marcus Aurelius, Plato's ideal philosopher king, taught tolerance, justice, universal brotherhood, detachment from power, and humility, then waged brutal wars with mass enslavements, village burnings, and child trafficking.
And yet, we can learn timeless wealths of valuable lessons from these people and their philosophical work.
There are no perfect teachers, no flawless wholistic monolith philosophies yet... And still these are my most valuable mentors. And that's fine.