What is the point of trains?
The major advantage trains have to belts is simply the fact that you can have multiple trains use one set of tracks to go to different destinations, Though you need to worry about collisions in that manner unless you build a more complicated system with 2 lanes.
If you build one advanced network of train rails, you can then have dozens of trains use the same rails to get to different destinations. Set up one Big copper mine that makes copper plates, and then you can build a train stop anywhere connected to the network, and have a train haul only copper plates from that original stop to your new stop. The copper will get from across the map from A to B, and it will only be copper. while you only had to build a few rails to do so since up to 90% of it will have already been done for hauling other resources. On one single track, you can have any and all resources travel over it in your trains, but will never mix and always get to where you need them in a timely fashion.
This of course is very difficult to accomplish, as it is very complex. The biggest Let's players work around this by doing it modularly, so that all of the hard work is only done once and they have drones build all but the fine details. This allows them to find a place with the raw resources they need, and then can bring over whatever they need to finish production. Building Belts for one or two lanes is certainly more efficient than setting up 1-2 trains, but if you need to get lots of resources to lots of places, then your going to need dozens of lanes of belts that are likely going to need to cross over each other and are only good for one thing each, But 2 train rails with a few stops can do the exact same thing and more.
Don't forget each cargo wagon can hold 40 stacks of items, which is 2000-4000 items for most resources. Each belt can only hold 6-8 items (ignoring throughput here), which means an average train with 3 cargo wagons can hold more resources than 1000 belts, but only take up the space of about 50 transport belts.
And there is always the ability to ride the trains for high speed travel.
Edit: Something else to consider is storage at the train stations themselves. The most popular thing to do is to set up chests and have inserters go from chest to cargo wagon directly for the stack inserter size bonus. I don't recall the exact number, but i believe there are 6 slots on each side of the wagon, for up to 12 chests of storage, both on the loading and unloading Train stops, for an additional 24 chests (which could be steel chests) of storage of resources per cargo wagon, for 72 chests for a 3 wagon train. This is a massive buffer of resources that could be filled while demand is low, and then last a long time when it goes up.
If someone knows the math, feel free to replace this with it, but a train system with at least moderately upgraded Inserters and 2-3 wagons could likely complete if not beat red belts in terms of throughput thanks to their capacity and speed. Of course you could always just add a 2nd or 3rd train, then it probably could blow blue belts out of the water.
I thought this too at first. It seemed that there was just too much overhead with the trains. But here's a few pros and cons to consider:
- As far as total bandwidth, the train scales much better. It takes the same amount of time and power to move from A to B regardless of how much stuff it's hauling (makes no sense) so once you build the track and the stations, you can add a cart and get way more bandwidth for nothing
- The train is more flexible because it can keep the contents in separate carts and make multiple stops. When the game gets big and complex I like to move sections of my factory to other areas. e.g. I can pick up metals from a mine, drop them off at an oil field, pick up plastic and batteries, and then take metals and plastics and batteries all back to my main base
- trains are harder to squeeze in. you need to plan more because the tracks and stations take up more room and they can't go under/over anything where belts are skinny and can weave around
Mostly I find that if the distance is high and the number of types of things is high, trains are way better. If the distance is short or it's just one thing and it's just A to B, belts are usually better.
In addition to the efficiency answer, another reason to use trains is processing power of your computer. Belts put /every/ item on them into the world to be rendered, and they also have some basic physics because they bump into each other. If you have 100k items moving around on belts, that is likely going to have a much larger impact on your system than 100k items stored in a few static train cars.
Source: This older answer where the founder/lead developer (at least in the beginning, I haven't kept up with the times if anything has changed) mentions how you can have as many trains as you want, until it starts to slow your system down. I can't imagine the same logic doesn't apply to the quantity of items loaded on belts.