Nothing about a miracle makes sense. so why would Judas have to make sense? The critical detail is that Judas was an outsider the whole time, carrying the money and making sure his “share” of it was well endowed. His attachment to money, and his expectation that Jesus would make short work of silly men with clubs and swords? It’s easy to imagine a wayward mind creating a desired outcome, then believing that nothing major would go wrong.
Peter used an edged weapon – think on that when you consider life in that day, and in Jesus’ company no less!!!! Then go back to Judas, and realize that he thought it was a no-brainer way to con the religious authorities out of a man-price (the amount of money to atone for a death.) When he realized it had all gone south he tried to give the money back, threw it on the floor when they spurned the idea of putting blood money into the sacred Temple treasury—then went out and hanged himself.
It should be obvious that Judas was merely a foolish planner, who played fast-and-loose with GOD’s life, and lost.
Exactly according to plan, by the way.