Thanos probably had a 50/50 chance of removing himself from existence when he snapped his fingers which is why he looked relieved afterwards
the only thing that would’ve made infinity war ok was if that bitch died too
That would be an especially satisfying instance of being hoist by one’s own petard.