Yes but juries should still be able to decide. Just because someone technically broke a law does not mean there is intent or that the law actually makes sense. If we give the courts that power we are all screwed because everyone commits multiple crimes every day. There is a famous book called Three Felonies a Day that should scare anyone about this idea.
That is a very solid point.
I do think that jury nullification is good concept and there have been news items where I have said “Put me on the jury” — meaning I wouldn’t support any legal penalty at all for the alleged action by the defendant.
So, yes, my concept that AI might be a good idea actually suffers a lot when I think about no possible leniency through nullification.