Focus on yourself. Your greatest power is not in arguing with a boss who doesn't like you. You can do things like switch teams internally - just put in for a switch. Start interviewing and work for another company and find someone who does like working with you. Maybe even go work for yourself.
Even when working for yourself, this actually still holds. When it's miserable working with a client, don't "PROVE" to them they are idiots. Do you really want to keep working with someone you've had to do this with? Again, move on.
I've had this happen a few times where the previous boss / client remembers me fondly - and I don't hate them either at the end of it.