Haven't had a moron boss like that but have worked with maybe one or two coworkers that sound just like him. Probably the worst coworker I've ever had is the one I have to work with at the current place, and everyone else on the team agrees. We don't understand how he got into the lead position he's in now other than by 'tenure' since he was one of the original guys on the team. The VP of the group was the manager who directly managed him back then and he's pulled the wool over her eyes because she's the only one who vouches for him when he screws up.
He's a bad combination of:
A) a 'lead' developer who talks out his rear and uses fancy-pants terms that make him sound smart but his comments typically either hold no actual weight or are irrelevant
B) he thinks he knows everything about everything and will speak condescendingly to anyone and everyone else because he's better. Even though he's more mid-level, he acts like he's some sort of manager and also will talk down to end users and PMs (who are usually senior) about how there's nothing wrong with the app (zero bugs) and the problem is they don't know how to use it right LOL
C) he won't hesitate to throw you under the bus at any given chance. this has become harder for him to do because, literally, the moment he points one finger at someone he has 10 pointing back at him.
I think this guy knows that he wouldn't survive anywhere else, so he's clinging to this life raft of a job... it's full WFH for most employees which is another huge thing he probably doesn't want to lose (I can't find work and I especially can't find work from home!!!) The guy is a complete narcissist; coupled with a mid-level development skillset in what is supposed to be a lead position, it's just a train wreck. I feel sorry for my immediate manager - the dude is a complete PITA. Fortunately, we don't have to work with him *too* often, and my cohort and I have sort of set it up that way intentionally (if he wants to tell us how to do something, try telling it to our manager first... usually nothing comes of his tantrums).