Contrasting mechanisms of growth in two model rod-shaped bacteria