Hexagons would pack better, but I’m not sure that the marginal gain (if any) in energy density would offset the increase in manufacturing complexity.
Also, if any pressure were to build up in a non-cylindrical cell, it would be prone to bulging, possibly damaging its neighbouring cells.