Exploiting dijet resonance searches for flavor physics