I feel "willpower" makes it sound a little too conscious, as opposed to habits and conditioning.
A good analogy might be a very smart person with a gambling addiction.
Knowing they ought to quit doesn't mean they can quit. Their intelligence becomes invested in the act of gambling itself, and almost no amount of reasoning can help them exit from a situation they didn't reason themselves into.