There are many, many ways to caramelize onions. Some people will do in the oven or even Instant Pot. This is the most straightforward, classic way to do this process. It takes about 45 minutes but so rewarding when done. It's "mostly" hands off except for the occasional stirring but you can be prepping the other things while they cook.