Both Spock and McCoy are frequently at odds with each other, recommended different courses of action and bringing very different types of arguments to bear in defense of those points of view. Kirk sometimes goes with one, or the other, or sometimes takes their advice as a springboard to developing an entirely different course of action.
However, the very fact that Kirk has advisors who have a different worldview not only from each other, but also from himself, is a clear demonstration of Kirk’s confidence in himself as a leader. Weak leaders surround themselves with yes men who are afraid to argue with them. —Five Leadership Lessons From James T. Kirk – Forbes.