while you can make caramelized onions with only one of either butter or oil, the best result will be if you use a bit of both. if you have to choose just one, choose a high quality oil (extra virgin olive oil or avocado oil). cooking in only butter may burn the onions too quickly because it has a lower smoke point.