Oxycodone and hydromorphone are both opioid analgesics used for moderate to severe pain, but they di…