The most glaring difference is that guns are basically inert. Whereas an AGI by its nature doesn't require a command in order to do something. It can pull its own trigger. The analogy of gun:AI could itself be analogized to bicycle:horse perhaps. You can train a horse to carry you down the road, but it still has a mind of its own.