Jesus stirs up trouble for the Pharisees, but authoritatively and economically. The Pharisees want Him taken down, so they fabricate charges against Him. When Pilate shows reluctance to do their bidding, they threaten to denounce him to Ceaser. Pilate capitulates and orders his troops to execute Jesus, who dies and is buried.
The Jewish leadership of that time wanted Jesus dead, and manipulated the Roman authorities to do their dirty work for them.
Simple, eh?
Actually, that's more like proof that it's fanfic written by frakking idiots who didn't even know what they were talking about.
The opinions and teachings of Jesus in the Gospels are actually very much in line with the Pharisee doctrine, and his being called a teacher or rabbi is also a Pharisee thing. His going to read the Torah in his hometown is also something the Pharisees did. So if that were true, Jesus would have _been_ a Pharisee.
So why do the gospels insist on pitting him against the Pharisees and making them some kind of supervillain group bent on thwarting him? Simple. Because the Saducees and Essenes had practically gone extinct already aftet the destruction of the temple, and the Pharisees were _the_ dominant Jewish doctrine left. Doubly so abroad. (Nowadays they're the only Jewish doctrine left.)
They were also the group that was big on reading the Tanakh, and could (and did) say "that's BS" when preached some verse taken out of context as some "prophecy" that Jesus "fulfilled".
Basically they were the group that was a pain in the butt for the early Christians, who were essentially preaching that they're _the_ new Judaism. And a pain in the butt when it came to the question, "wait, so if it's consistent with their religion and fulfilling all their prophecies, why aren't those guys converting?"
So they had to be turned into some villain group that were all along just into trying to thwart Jesus at every step.
Some of the gospels which didn't make the cut when they selected what's canonical even went full-tilt into rabid anti-semitism and vilified the whole people.
The ones chosen are actually somewhat more moderate, in the same way the wedge doctrine of creationism is. (I.e., not very.) They're trying to play the "don't listen to your rabbis (Pharisees), join us, they are just blinded by their quest to thwart Jesus, see? And oh, they already debated him and lost, man. They just don't want to admit it. Listen to us, not to them, really" card to the Jews instead of just going for the ol' FU.
It also doesn't help that in the gospels the Pharisees are thwarted only because the authors say so. Almost none of those incidents would have worked that way in a theocracy. (Think going "I can break the Law because I'm God's son" in Iran nowadays and you'll get a good idea how _that_ would have worked in ancient Judaea.) Doubly so against a hostile gang that's determined to find something to get you stoned for. And not the herbal kind of stoned.
It's plain old pieces of invented fanfic to say "Jesus already debated their rabbis and won, they just won't admit it", because the early church badly needed that.