“Well, for one thing. I am not an Asgardian and for another, we have the hulk”

You can’t just judge Loki with a blink of an eye even if you had watched all the MCU movies because what he did in infinity war was more than to count him as an Avenger but his trickery and Number of people he killed will never be compensated with that. Yes, he was dear to mighty Thor, he did betray him many times. If we don’t count his destruction to Earth he was good in every way but in the First movie of Thor series he invites the Frozen Giants to call away Thor’s coronation, but in his defence, he said one thing to Thor “I never wanted the throne, “I only wanted to be your Equal”. Clearly, he must have suffered a lot more than we are aware of. But Thor never gave up on him. Loki in every way helped to keep the Asgard safe and he did play his tricks every time but you can’t blame him as he was the God of Mischief. His commitment to save the Asgard from Hela and also to help Thor by using his tricks on Malekith into drawing Aether out of Jane Foster . He successfully rose Surtur but he couldn’t just resist himself with the Tesseract. Many times he proved that he is more than a Trickster .Maybe he did pull some trick when he tried to attack Thanos because he is not stupid enough to attack him with a knife. His appearance in the Avengers :Infinity War was not quite explanatory. He may be dead or maybe not and the next movie is full of surprises. But what he did to his father is not so good , maybe he had reasons, Maybe he is evil or maybe good but he is certainly more than a trickster. About his character, there are a lot of things that kept untouched like he being the product of revenge and survival. He maybe an anti-hero sometimes in we a way but can’t be all the time, because an anti-hero doesn’t think about himself and we can’t certainly draw the conclusions without seeing the next movie. There are many theories about his survival and how he could have or did do to save his life, they give us lots of promises and disappointments , there is no one solid proof, all we have to buckle up and wait for it… Good luck with that ..