But I don't see what the Duke has to do with it. If the Margrave's seriously wounded, though, you may have a chance.
Indeed, but if you do succeed you will only become Margrave, not Duke. Only your ruler can make you Duke, you can't buy it anymore. And you need to be a Duke to secede.