Flatten will flatten all elements into a single array- flat map will only flatten one level, and retain nested arrays
#flatten flattens everything by default (retuning an array with no arrays as members), where #flat_map does not (if you pass it a multi-level array, it will retain the structure of it).