Android does, at the level of "Allow notifications from app X" and "Block notifications from app X".
DoNotNotify gives granularity and rules (which a specific app may have chosen not to implement).
For example:
"Allow <budget airline app X> to display notifications of gate changes"
"Block <budget airline app X> from displaying advertising notifications"
Android 15/16 does allow you to control notifications even lower, at the level of notification category, but indeed the app must have chosen to use them.