Things are absolutely not like this everywhere. I don't know where you got this idea that things can never be better than terrible, but it isn't true.
> My goal of doing bare minimum is to teach them a lesson
I mean, you do you, but to me this vindictive motive reads as super unprofessional and could backfire on your career, even outside of this company. It's one thing if you're trapped at this job because of circumstances outside of your control, but assuming you have the opportunity to look for something else, you owe yourself more than to intentionally stay in a toxic workplace just to get some kind of misguided revenge (?).
Move on. Your career is not a torpedo whose only remaining purpose is to detonate itself at a target that's done you wrong. Leave the toxicity behind and do something you'll feel good about.
Are you expecting a large severance payment if you do work until they initiate termination, that you would not get if you quit?
Do you need any of these political bloodsuckers' reference and good word to land a new job?
If the product is making money but somehow the company that owns it does not see a future in more investment there, who are their competition and why not work for these guys instead? How valuable is your domain knowledge and how much is locked in non-competes? Same question for the customers of the product you are working on... Why is your goal to do the bare minimum? Why use the passive form in "being managed out"? Someone somehow has put themselves on top of your game what did they do to corner you, is this in the company's best interest, or is it in their own personal best interest?