Weed Bad…Synthesized Addictive Pain Meds Good?

So weed is a bad thing but Oxycodone and Oxycontin are fine. How do you justify that?