leave the company.
if the company does not promote meritocracy (in a sense that it gives more competent people more responsibility and vice versa), you are destined to become more and more at disadvantage.
life is too short to spend it fighting a localized idiot. go build something interesting that will benefit mankind.