Double-click a folder in Finder and the window jumps into it, so the folder you were in is gone from view. Two modifiers change that.
Apple’s shortcut list has both:
Command + double-click open the folder in a separate tab or window
Option + double-click open it in a separate window and close the original
Command-double-click is the one I’d use most. Your current folder stays where it is and the other one opens next to it, in a tab or a new window depending on your settings. That’s perfect for moving files from one folder to another: open the target with Command-double-click, and drag between the two tabs.
Option-double-click is the opposite mood: you’re done with this window and want the next folder to take its place cleanly, without collecting windows.
Whether Command gives you a tab or a window depends on a Finder setting. In Finder > Settings, on the General tab, Apple lists “Open folders in tabs instead of new windows”, and it’s described exactly as what happens when you hold Command and double-click a folder.
Watch out with the timing on a trackpad. Hold the modifier before the first click and keep holding it; let go too early and you get a plain double-click. Also, both tricks are about folders. Command-double-click on a document simply opens it in its app.
Further reading: Mac keyboard shortcuts (Apple Support), Change Finder settings on Mac (Apple)