While both codeine are opioids , they function in different ways . Morphine is a powerful agonist that quickly diminishes severe pain. In contrast , the less potent option is primarily metabolized into this active compound in the system, resulting in it a bit potent for treating acute pain and often used for minor discomfort or with an cough suppre