I bake onions all the time and they are really good, but the onion you choose makes a big difference. For potatoes you get different results as well but it’s all still pretty much hot starchy goodness. For onions you want something with a decently robust skin on it and mot something like a modern yellow onion which has a pretty thin outer layer and will probably overcook/dry on the outside before the inside gets nice and cooked.
I bake onions all the time and they are really good, but the onion you choose makes a big difference. For potatoes you get different results as well but it’s all still pretty much hot starchy goodness. For onions you want something with a decently robust skin on it and mot something like a modern yellow onion which has a pretty thin outer layer and will probably overcook/dry on the outside before the inside gets nice and cooked.