I don't agree that no government will give it up. There are weapons available to western governments that are not used because of moral concerns. Nuclear bombs, land mines, biological weapons and so on.
No doubt there will always be a Syria or North Korea that uses AI-controlled weapons anyway, but I think civilised countries could avoid them, at least while we have the military advantage.