Honestly I normally give what most wouldn’t call sound advice and tell people about my success or at least partial success about quitting one substance by using another one, sometimes at the cost of switching addictions(but not usually). But opiates to stims for some reason does not work for me, at all. I tried it in my teen years, tried it in my 20s and just recently tried it in my 30s, just for subs this time. Every single time I just end up with the same ole opi addiction with a heavy dependence of a stim thrown in.
Tried it with coke, tried it with adderall, tried with Molly/Ecstasy(with tramadol of all drugs). They were all combined with a tramadol addiction at one point actually, I’m lucky as fuck I didn’t end up with serotonin syndrome at some point. The most current stim is meth and while I can say I’ve been off subs for a few days now it’s only because my hook up went MIA. Been randomly finding pieces of sub and baggies with subutex powder all over the house so sometimes I’ve been having it

meth dependence and opiate withdrawal is one hell of a ride I’ll tell you that.
I don’t know your background so can’t say for sure coke will ruin your life more than opiates, but I can see that scenario going up in flames real fast if you have shit self control as most of us addicts tend to. Personally when I do coke it just makes me wanna feel fuckin GOOD despite how great I already feel. I’ve done by far the most dangerous and reckless drug/alcohol combinations while under the influence of it, and while I personally have never developed a real addiction to it, it just made my opiate and alcohol intake even worse than they already were. As well as pretty much whatever else I could toss down my gullet or put up my nose. For some reason my dick works great on amphetamines but never has on coke so I gotta fill them pleasure receptors somehow ya know lol
If you think coke would actually take your mind off opiates rather than make that voice in the back of your skull dig into you until you cop then I would say go for it, only you truly know yourself. But if you’re anything like me it’s honestly a bad idea. I haven’t been able to do coke “responsibly” ever, and by that I mean just coke. I’m a crazy motherfucker but hide it well, even on drugs like meth that tend to really bring peoples mental instabilities out. But on blow there is no containing it. The few times I tried to substitute opiates with it went worse than anything else, the worst probably being when I did most of a quarter oz to myself over a few days, barely ate and drank nothing but whiskey and ice beers and did H for the first time since rehab then decided to drive to the city to pick up a large package from my boy living down there and passed the fuck out driving my cousins car less than 2 miles from his house. Only about 265 miles from my destination and managed to dodge enough trees while unconscious to make it far enough into the woods where nobody ever saw me. Could have been dead and nobody would’ve known for don’t even know how long cause it’s posted property that nobody ever goes on until deer season. Woke up the next day, texted my cousin that his car was wrecked and upside down and shut my phone off and walked home. Dude still doesn’t talk to me to this day lol, can’t say I blame him. Pretty sure he tried to press charges against me but I don’t think he knew where the car was and I wasn’t exactly an easy person to find back then.
Sorry for the novel, but in short I’d say no. Maybe my experience with coke is the opposite of the norm, maybe it’s not, really don’t know. But it makes me do crazy shit and when I did it with friends we’d do crazy shit together. IMO almost any other drug would be better. The only good thing I can say about my coke use is my ability to stop using it when I run out, and if it wasn’t for the fact that I realize it makes me go fuckin nuts(the price doesn’t help either) I probably would have done it a lot more.
Good luck man. Hopefully it’s not fent you’re doing, stay safe.