For a fixed volume, a circular cross-section minimizes the material needed for the wall — this is why cans are round rather than square.
Square cans also concentrate stress at corners, which demands thicker walls independent of the surface-area argument.
The main cost circular cans pay is packing efficiency: cylinders leave ~9% void space in a rectangular crate that square prisms would fill.