Just smear the heck out of them to stakeholders, after implementing something big and climb over these incompetent shmucks and watch their fall
While probably facetious, those with power (who you aim to smear and replace) will save themselves and work together to fire you ASAP. This is not a winnable battle nor strategy for success, unfortunately.
If I can only go back in time to 2007 :)
See also, test the flammability of every bridge you cross.
Also make sure to brag using terms that non-technical people can understand and want to hear. Less "we stopped writing an in-house CRUD that was Django but worse" and more "we saved months and increased security by adopting a market leading solution and it works better with AI too".