Seriously, this isn't that complicated, people just muddy the waters!!!
Roasting is for items with inherent structure, like meats, poultry, or dense veggies. We're talking higher temperatures, usually 375°F (190°C) and above, to promote intense surface browning and crisping via Maillard reactions and caramelization. Heat transfer is largely radiant and strong convection, producing that incredible crust, IMO. It's all about flavor development!
Baking is for things needing to *form* structure, like cakes, breads, or custards. Lower, more moderate temperatures (below 375°F), utilizing gentler convection and conduction for even internal cooking without excessive browning. It’s about setting and expansion, BTW. Don't mix them up, LOL!