Differences Between Codeine and Hydrocodone. Opioid Epidemic. Codeine and hydrocodone are both legally prescribed medications that are most commonly prescribed to treat or manage pain. In the United States, we are surrounded by a large array of options when it comes to pain management....