A long-acting medication designed to help wean substance abusers off opioids is as effective as short-term therapies such as buprenorphine and methadone that patients must take every day, researchers reported on Tuesday.

The first major head-to-head comparison of medically assisted treatment approaches confirms that users now have two research-based options, according to the team of scientists led by Joshua D. Lee and John Rotrosen of New York University Medical School.

But each method also showed a distinct disadvantage.

The short-acting medicines must be taken every day for years and sometimes for a lifetime — a difficult regimen for many substance abusers to follow, especially in rural areas that may be far from dispensing clinics. Monthly injections of naltrexone, in contrast, cannot be started until users have fully detoxified from opioids, which more than 25 percent of the subjects in that part of the research study failed to do.

“This provides an alternative medication for patients that may not have responded to buprenorphine … or patients who eventually want to be taken off their medication,” said Nora Volkow, director of the National Institute on Drug Abuse, the government agency that funded the research.

In addition, more than half the opioid users in the study relapsed at least once, regardless of which medication they were taking — evidence of how difficult it is to conquer addiction.

Medically assisted treatment is widely considered the most successful way to recover from a substance use disorder.

But according to President Donald Trump’s commission on opioids, only 10 percent of the 21 million people with substance abuse disorders receive any kind of treatment.