I reckon of Thanos had not wiped out half of the universe randomly but instead was selective and removed the bad ones rapists, bullies, racists, unkind, abusers ect I bet you the avengers would not have tried to undo it or at the very least they would have hesitated