Here's one of Sheldon Brown's cribsheets about it:
https://www.sheldonbrown.com/cribsheet-spacing.html
While 6- and 7-speed do technically fit in the same nominal OLD, you do have to sacrifice a little clearance with the latter, and not all bikes have that clearance to spare.