Eating cannabis has very different effects to smoking it, due to liver metabolism. I am not sure what it does to CBD, but the psychoactive metabolite of THC does not have the same effects. Eating cannabis is more than just a different delivery method - it's essentially a different drug entirely.
Unfortunately, while I found CBD strains most effective for pain, I personally have not been able to tolerate them - they cause me memory problems that I have not found any mention of in the literature, not anyone else who experiences them.
It's important to note that, unlike opioids, cannabis doesn't make the sensation of pain less strong, it makes it less urgent.
This means that if you won't necessarily feel a direct effect on the pain, but that its subsequent effects aren't as strong - the pain is not as exhausting, distracting, or debilitating.
However,
What I actually recommend, and has helped for many of people, is the Phoenix tears/ Rick Simpson oil regiment.
You can buy premade oil marketed as such or Rick Simpson provides diy on how to do this yourself.
Essentially it is ingesting small amounts of concentrated cannabis oil daily, like taking a prescription.
It vastly helped my mom's Chrons and I know of a few people help with chronic back pain