There has been a space colonization discussion started by Gerard O'Neill. The idea was to not colonize a planet or moon, but rather orbital space, particularly L5 or the trojan asteroids. They envisioned massive spinning colonies, miles across. They came in all designs, including torus and sphere, but most of them were cylinders. (with dome end caps)
The advantage of the cylinder or sphere was efficiency of materials use. This worked well for huge structures because, with the radius of 1 to 3 miles, the rotation period was low enough to reduce the coriolis effect to negligible levels. The coriolis effect can cause a kind of sea sickness.
In smaller structures, a torus, or better yet dumbbells can increase the radius for the same purpose. So that may be why you see a lot of toruses.
A spinning object is not stable if it is spinning around it's long axis. So if you imagine a colony the proportions of a long can, spinning around it's middle, after a while it would wobble and wind up spinning end over end. So that favors a torus, dumbbells, a sphere, or squat cylinder.
However O'Neill favored pairs of long cylinders attached together with beams at the poles. That way they would balance out and be able to keep spinning on the long axis.