In the Marvel Cinematic Universe, there are two special categories of character for whom the normal rules do not apply. I don't know if this also applies to the Marvel comics, but I've certainly seen it in the movies. I call them the "Favoured" and the "Disfavoured" characters.
A Favoured character can do no wrong.
I don't mean that they don't do anything wrong, I mean that the wrong things (or mistakes) they do are dismissed, ignored, rationalised, or made out to be good things.
A Disfavoured character can do no right.
It isn't that they never do anything right, but every single wrong thing (or mistake) they have ever done is thrown in their faces forever, and the right things they do are dismissed, ignored, rationalised, or made out to be bad things. They are everyone's favourite scapegoat, also.
( Signs of a Favoured Character )
( Signs of a Disfavoured Character )When you have a Favoured character interacting with a Disfavoured character, because of these biases, every Favoured character comes across as a flaming hypocrite. Which means that the writers who are desperately trying to enforce the view that their Favoured characters are spotless heroes, have done the exact opposite of what they intended. Ooops.
I would even go so far as to say that out of Tony Stark, Steve Rogers, Thor, and Loki, the only mature, responsible adult is... Tony Stark. He's the only one of the four who actually takes responsibility for his actions, and not only for his actions, but for his inaction. Steve Rogers seems to think that because he meant well, he can't be blamed for the harm he caused. Thor has a similar attitude. Guess what? Tony Stark meant well, too; he meant to protect American soldiers. And what does he do when he discovers that harm came of it? He tries to make amends. Steve Rogers doesn't. Thor doesn't. Loki is a wild mixture of blaming other people for his problems, trying to fix his mistakes, and trying to fix other people's mistakes, badly. Interestingly enough, both Tony Stark and Loki were betrayed by people they considered family. But Tony had support (Yinsen, Pepper) and Loki had absolutely nobody.