once upon a time, same thing happened to me except thankfully enough the cocaine hcl was a gift. As for whether it should have been avoided...?? Yeah! Absolutely. But I was in opioid withdrawals and in such states one craves relief from anything, even possibly illogical options. I think the cocaine just made me extremely talkative.... but during opioid WD you don't get to talk about interesting conversation topics.... you get a person who cannot shutup about how shitty they feel.
TL;DR stimulants will not make you feel better during opioid withdrawal, and I do not condone their use for these intentions, but they certainly provide more than enough distraction you could ever need, methamphetamine hcl in particular. NOTE: I didn't specify whether the distraction would be beneficial or counter productive. I've experienced benefits w/ d-meth but FWIW, if you're in opioid withdrawal, you're already going to be sweating, pissing, shitting, nausea, anxious, suffering insomnia, general malaise, and using stimulants during WD tends to just add to all of the symptoms of opioid WD. So in a way, I think (dose-dependent) stimulants may actually INTENSIFY the opioid withdrawals. But if you're tweaked out or cracked out, well there's plenty of time to regret your decision and feel like complete shit about it.... OR, you could (dont take offense to the term) man up for 72 hours.
As a fellow chronic pain patient who's underprescribed and knows all too well about how shitty the last few of every 30 days feels, by using stimulants I think that you are putting yourself at a huge risk for a pain flare, and if you have no pain medication and you're tweaking balls with a pain flare, you're going to likely spend a lot of time awake, anxious, shaking, and regretting.
My $0.02, don't take stimulants during opioid withdrawal especially since you only have to wait 72 hours.... Unless you like, wanna have been up for three days tweaking or smoking base when you go in to refill your script.... Which is never fun and is a pain flare waiting to happen.
When in opioid WD, I try to be unconscious as much as possible. So I've found that using stimulants like methamphetamine (I don't like to use cocaine, or street drugs) don't help me achieve that goal. I lean more towards the CNS depressants at the end of the month. Again, not a practice I condone. I'm a chronic pain patient / opioid addict, and I do the best I can.