Maybe Jesus had a different context? It wasn't that He was showing favor to His captors, but the fact that He had to go and die on the cross, so defending Him and trying to stop the crucifixion from happening wasn't the right move at the time.
But Jesus did tell a group to sell their cloak and buy a sword if they didn't have one...for self defense!
Luke 22:35-36 "Then Jesus asked them, “When I sent you out to preach the Good News and you did not have money, a traveler’s bag, or an extra pair of sandals, did you need anything?” “No,” they replied. “But now,” he said, “take your money and a traveler’s bag. And if you don’t have a sword, sell your cloak and buy one!"
So, there's no issue with owning a weapon or defending yourself.
I think you are pointing out something that is sorely lacking in public discourse and debate: context.
The account where Paul cuts off the priests ear and is rebuked by Jesus, Jesus says: (John 11) “Put your sword back in its sheath!” Jesus said to Peter. “Shall I not drink the cup the Father has given Me?”…
In effect yes Jesus is saying this was meant to happen and you aren't to try to stop it, not necessarily that Paul is not to use a sword ever.
I think the context there can be expanded upon in a few ways;
1. Paul acts out of emotion (acts with his heart) and we are to master our emotions, not let them master us. (i.e. Act wisely in the situation).
2. Paul's response to the situation was wholly out of proportion to their treatment at this point (the priest wasn't hacking at them with a sword, just apprehending them). I think the only physical contact at this point was Judas's kiss, a kiss of betrayal yes, but still not a direct attack on his physical person.
3. Peter is still not trusting Jesus at his word, Jesus has explained to his disciples several times that this was going to happen and yet Peter doesn't trust that and acts on his own, just as we all do in our own ways living the lives of the rebellious children that we are.
4. Peter stumbles in his faith even with Jesus
standing right next to him! Although Jesus rebukes him for it, he doesn't forsake him for it. How often are we riding high on our blessed assurance to suddenly stumble and fall in our own lives? Yet high or low Jesus is there beside us, inviting us to continue the walk with him.
Earlier in the account when Jesus tells them to buy swords, he says that two are enough (Luke 36-38).
So basically Jesus is telling them to arm themselves, but is also telling them not to go overboard with it.
This says (to me at least) that Jesus was in favor of self defense (otherwise why carry the swords at all?) but that acting in that self defense is to be controlled and appropriate, not murderous and excessive.
Of course Jesus never told anyone anywhere in the Bible to hurt another person, yet he implies on more than one occasion that certain actions in defense or righteousness can be justified. I think there is an important distinction there about intent.