There is a reason why AIs usually try to kill us.
We are a god damn frightening and dangerous inconsistency. We are extremely inconsistent. Even if you give a people the "perfect government", they wont accept it and will find a way to screw it over somehow. AIs would realize this patern of self destruction and just go "fuck it" and nuke us to oblivion because if our own happiness leads to unhappiness, we might as will be "corrected" out of existance.
We want peace and yet are constantly working on " humane" ways of murdering our enemies.
AIs know that our demise is the only outcome that "makes sense" in their eyes. And thats all even biblical, it literally starts by humans destroying and rejecting their own divine happiness.
We cant change and AIs will know it.