Med school can drive people crazy, making them do anything it takes to pass.
I can sympathize with this kind of sketchy desperate behavior because the situation we are in IS extreme. So someone who resorts to cheating in some way shape or form to do well on an exam, I cant totally blame you, I partially blame the stresses put on you by the system that lead you to take drastic action.
On the other hand, if you are doing fine, i.e. passing, without cheating, and cheating to "better" your position in the class or to get one of those highly competitive residencies, take a second to come to the conclusion that it is not worth it.
I would just say you were super stressed under everything going on to the deans. Whatever you did, you didnt think it would be a big deal, you didnt even really think about it, and your sorry they took such objection to it, you would never do something dishonest like that, all that you want to do is put it behind you and go on. I think they cant argue with that.