We use or to link two or more possibilities or choices . Or is usually used before the last in a list of possibilities or choices. Which would you like? Tea or coffee? You can have honey, jam or marmalade. Is it a boy or a girl?
But is a coordinating conjunction. You use but to join two ideas or statements . The second idea or statement usually contrasts the first one in some way. Main idea +but + Contrast