Over six weeks they can look similar. The interesting comparison is what your sleep does in the weeks after each one stops.
That is the whole argument, and it is the reason every major guideline puts them in the order it does.
What the guidelines actually say
The American College of Physicians, 2016: all adult patients should receive CBT-I as the initial treatment for chronic insomnia. Strong recommendation. Their second recommendation - about short-term medication - is graded weak, on low-quality evidence, and is framed as a shared decision for people in whom CBT-I alone was not enough.
The AASM's behavioral guideline, 2021: multicomponent CBT-I is its only strong recommendation.
The AASM's medication guideline, 2017: fourteen drug recommendations, every one of them weak, on low or very low quality evidence. Its own text says all patients with chronic insomnia should receive CBT-I as the primary intervention, with medication considered mainly for people who cannot take part in CBT-I, who still have symptoms after it, or as a temporary adjunct.
The European guideline, 2023: CBT-I first-line for adults of any age, in person or digital. Benzodiazepines and the newer z-drugs "can be used for the short-term treatment of insomnia" - defined there as four weeks or less.
None of that says medication is bad. It says the evidence supporting it is weaker, and it is meant for shorter.
The head-to-head trial worth knowing
Most comparisons are indirect. One is not.
A double-blind, placebo-controlled trial in older adults with chronic insomnia compared CBT against zopiclone against placebo, measuring sleep with polysomnography rather than asking people how they slept.
At six weeks, measured sleep efficiency went from 81.4% to 88.9% in the CBT group. In the zopiclone group it went from 82.3% to 81.5% - essentially nowhere. Time awake during the night fell 52% with CBT and 4% with the drug. Slow-wave sleep rose 27% with CBT and fell 20% on the medication.
At six months: 90.1% against 81.9%.
Total sleep time did not differ significantly between the groups - which is consistent with the pooled data on CBT-I, where total sleep time is the one measure that does not reliably move.
Where the real difference is
Not the size of the effect at week six. The mechanism.
A hypnotic changes your sleep while it is in your system. It does not change the schedule, the associations, or the beliefs that are maintaining the problem - so when it stops, the thing that was producing the insomnia is still there, and often the first few nights are worse than baseline before settling. That rebound is expected and temporary, and it is frequently misread as proof that the drug was necessary.
A behavioral program changes the inputs. When it ends, nothing is withdrawn. Pooling trials with long follow-up, the effect on insomnia severity is moderate at three months and smaller but still present at twelve.



