Icepack. I was in the U.S. military (Army) for several years. And in combat as well. (Grenada in 1983). I agree with your assertion that it is the uniform that one respects.
However, if the uniform is inhabited by a complete fool then, yes, you follow his/her
orders regardless. But you do so not at all out of respect. You do so because the alternative, possible courts martial or demotion, is not palatable. Having said that, I've also served under many fine officers and NCOs who I would have gladly followed to the gates of hell. Respect is earned, indeed. Both ways.