Giving app keyboard shortcuts priority over global

I want to have a single keyboard shortcut that performs one command for everything but a different command for one specific application. I set up the shortcut in all apps and again in this specific app. What I want is to allow the specific apps shortcut to take priority over all apps. I can't seem to find way to do this.

that's the default (as long as that app is active)