It definitely isn’t the same. The square packing in the first picture uses pi/4 ~ 79% of the space; the second uses pi/(2*sqrt(3)) ~ 91% of the space.
They don’t bother with smaller secondary batteries because the extra manufacturing cost and operational complexity isn’t worth it for a 5%-10% bump in volumetric energy density.