I agree with your sentiment, but nobody deserves torture, no matter how terrible they are or what they’ve done. I can totally accept an argument that society is better without some people in it, but torture isn’t good for anyone, ever, and we should never, ever endorse its use, even when speaking figuratively.
If our goal is to minimize suffering for everyone, intentionally inflicting needless suffering on others is antithetical to that goal, and makes us no better than those we oppose.