I'd much prefer apps use Dock menus, like the HIG suggests. [1] There are very few apps that need to be permanently in the menubar. Plus, the Dock offers a much more high fidelity icon to represent your app. Seems like a win-win for users and app developers, but this bad pattern keeps getting copied.
I agree that many applications don't need menu bar extras. However, the option is always nice to have. Regardless of the HIG, it might not be good to restrict functionality to Dock given that many people turn it off.
[1] https://developer.apple.com/design/human-interface-guideline...