Your comment also seems to imply that this treatment involves consuming ibogaine habitually or regularly
The protocol for ibogaine treatment, according to the article and the experiments being done, do not have this requirement.
Like other treatments involving psychedelics and hallucinogens, the protocol here is that a one-off treatment, a single dose, results in meaningful improvements in both addictive behaviors and PTSD symptoms a month later and potentially longer
This is not the same as something like methadone or naltrexone, which _are_ what you describe: replacing a more harmful opiate with a less harmful one.