When the screen is a pile of overlapping windows, I don’t want to close anything. I just want everything else out of the way.
Command-H hides the windows of the app in front. Add Option and it does the opposite: the front app stays visible and every other app is hidden.
Command-H hide the front app
Option-Command-H hide all other apps
Option-Command-M minimize all windows of the front app
Hidden is not the same as quit. The apps keep running, downloads carry on, and nothing gets closed. To bring one back, click it in the Dock or press Command-Tab and pick it. That makes Option-Command-H a good “focus” key: open the document you need to write, press it, and the chat apps and browser tabs are gone from view without losing any state.
It’s also handy right before you share your screen in a call, so the other windows on your desktop don’t show up in the meeting.
Keep the difference with minimize in mind. Option-Command-M sends every window of the front app to the Dock as separate items, which clutters the Dock when there are many. Hiding keeps the Dock tidy because the app just disappears as a whole. One caveat from Apple’s own list: every app can have its own shortcuts, so a few apps may use Command-H for something else.
Further reading: Mac keyboard shortcuts (Apple Support)