I think hex is superior to both as it’s way harder to strip than a torx and it has 50% more options for starting angle than a robertson, which comes in handy when you can only get at the bolt head from a right angle, while being almost nearly as grippy and strip-resistant. Plus it’s presumably simpler to machine than a torx star.
I think Torx tend to be used on things that are assembled by machines. It might be better to use Torx on things that are machine-assembled. In that case you have to care about the wear and tear on the screw drivers, and a Torx design might last a bit longer. With a square head there’s going to be a tendency for the driver to become rounded over time.
I’d argue that Robertson is actually superior to Torx, since the “vanes” of the Torx head are more prone to stripping than the solid right angles.
I think hex is superior to both as it’s way harder to strip than a torx and it has 50% more options for starting angle than a robertson, which comes in handy when you can only get at the bolt head from a right angle, while being almost nearly as grippy and strip-resistant. Plus it’s presumably simpler to machine than a torx star.
I think Torx tend to be used on things that are assembled by machines. It might be better to use Torx on things that are machine-assembled. In that case you have to care about the wear and tear on the screw drivers, and a Torx design might last a bit longer. With a square head there’s going to be a tendency for the driver to become rounded over time.