What's contentious is the idea that you can get someone dedicated to reveal a secret before their friends notice their absence and change the secrets. The classic movie plot is something like a bomb disarm code but that's a [fortunately] rare situation and likely futile when e.g. a dedicated extremist who knows they only have to hold out for a short period of time.
It's unwise to caricature your opponents as evil or stupid. Not only is it an impediment to understanding them, but it makes any sort of dialogue impossible.
Consider this video featuring Retired General Wesley Clark talking about plans in the Pentagon (circa 2001) to regime change 7 Middle Eastern countries in 5 years.
https://www.youtube.com/watch?v=9RC1Mepk_Sw
Assuming there is any truth to this claim (and I'm suspicious because we can't independently verify the claims), the implication is that the US military investigated and drew up plans to free the countries and make their oil available to western nations in order to fuel future economic growth (I'm taking liberties and drawing inference from previous US intervention in Middle Eastern foreign policy). It's not "profit", but it's the long term "security" (which can be extremely subjective) of the US.
I consider torture itself evil under all but the most extreme and rare ticking time bomb scenarios. Little to none of the enhanced interrogation stuff I've read about fits into that category. So that leaves the question of whether the motives are also evil or just stupid.
Doing something that you know doesn't work on the theory it will intimidate is stupid, especially with an enemy that comes from an honor culture that relishes conflict and values martyrdom. Failing to evaluate your techniques for actual success rate is stupid. And so on...
....yyyes? precisely that?
Or are you being super sarcastic? Or something?
Even I think that, even though with sufficient amount of torture, you can get a guy to say anything you want to hear.