Applications remain in dock after closing
Mac > Desktop & Dock > Show recent applications in dock is toggled off in my settings. And yet, most applications (that are not pinned to my dock) remain in the dock after closing them. Only a few disappear as I expect them to. I can't even find a pattern (i.e. type of app, developer, or other) for apps that close and apps that don't. For instance, Skype and Teams remain in the dock, while Zoom disappears. Notes remains in the dock, and Reminders disappears. I can't even find app-specific settings that I can control.
When I say "close" I mean clicking the red x button at the top left. The behavior I expect is that unless the app is pinned to the dock, and with "Show recent applications..." toggled off, the app will disappear from the dock. But it only disappears if I right-click on the icon and click Quit.
What am I missing here?
MacBook Air 13″