Semaglutide and metformin are both medications prescribed to treat type 2 diabetes. Ozempic is a weekly injection approved for managing diabetes only in adults. Metformin is an oral medication approved for ages ten and older. They work in different ways to lower blood glucose levels.