Flexbox: distributing a variable number of elements, like an image gallery.
Float: in sections where there could be a variable number of columns, and the columns could have variable possible widths, using floats can be simpler than grids.
This is because you have to maintain many different grids (and their media queries) for the parent display:grid elements, and with floats you're only styling child elements.