The second problem with people is that they try to evangelize their own little personal moral-principles based religion, some cause they believe in and try forcing it down other people's throats. There is literally no reason why any one should care about what or why you believe in anything at all. Especially if they don't stand to benefit from it in any real way. There is also no reason why you should mark any one as your enemy for not believing in what you do. This is even more troublesome because people attach things like moral prestige/superiority/pride to their cause and humiliate other people's intelligence for not aligning with theirs. Why should you want to do this?
Stop trying to be a rebel, take a step back and what see you are doing. Your boss wants X, in an ideal situation the best you can do is convince them to agree on settling with X-dx. But if your boss wants X and you want to change their directions and want them to do A instead. They are going quietly relieve you of your work, and find some one else to get the job done.
This is very bad advice purely career wise. In fact being in the good books of the cartel managers is something you should proactively do.
Also stop believing in this myth of finding a boss who is powerful, just, fair and does the right things all the time. Humans are irrational species because we have to often arrive at a one pick decision between competing priorities, sometimes even paradoxical priorities. Reality is a big mess and no straight work-reward equations are possible. This extends to so many things in the real world. Business, relationships, contracts, job space etc etc. One must always aspire to be slightly evil as much as things allow one to be. That means developing tact to manage everyday politics, negotiating, coercing, influence and various other people management things.
Plus given this specific point, if your boss or immediate leader is too powerful fighting him is pointless and self destructive. And even more important point, stop fighting other peoples battles. Whistle blowing, activism and standing for principle all gives you a huge sense of self worth and makes you feel important about yourself. But it's a very bad strategy, because you will fall out of favor and get marked up as a trouble maker in the eyes of any powerful watching. And you will never meet a boss or a leader who is likely to appreciate this. Stop trying to be a martyr or other people's cause.