One analogy to help explain
Matthew 27:46 is connected to Mr Spock of Star Trek. Spock is primarily Vulcan, but he also has a human side. His human side is mostly repressed, but it does appear every now and then; fascinating!
To further develop this analogy, Spock is half-human because Leonard Nimoy couldn't hide all his human emotions. Like Jesus, Nimoy is just a human and the character got plot points added to fill in some holes.
When your human teacher is killed off when you assumed he was going to go on some epic reign, defeating evil and such, you have to make up reasons why that didn't go so well, just as Star Trek had to explain this:
Remember that God made Him to be sin who knew no sin.
Well, that's problematic because despite the assertions to the contrary, Jesus sinned all the time, from childhood onward.
This is one of the prayers in the Hebrew Bible. And if we are reading the surrounding text, it is largely what is happening to Jesus.
It supposedly happened to David, and the NT authors loved copy/pasting tropes from other famous people onto Jesus' story.
The prophecy here fulfilled, was one found in Psalm 22, which was written by David, who was a prophetic type of Jesus Christ in many respects.
He'd be Osama Bin Laden today. He was hired by the leader of the country and then betrayed and then went on lots of terrorism missions against his own people all while blaming the leader.
What if... just what if Jesus never actually expected it to go down like this?
Indeed. He and Judas were in on it. Jesus expected to make a big stink in front of the authorities, maybe have them bow before him and admit he was right ... but they just shook him off like some random nutjob terrorist and he started to freak out when he couldn't run anymore. Remember, people had wanted him dead for months AND HE ALWAYS RAN AWAY. That is not the attitude of someone who wants to die for anyone, let alone us specifically.
From the history of the Prophets before him, of course he knew.
But many deaths were made up during or after Jesus' lifetime. There is little to no evidence that Jews killed their prophets. And let's not forget that being a prophet was like how our presidents have religious people surrounding them: it's for PR, not God. Prophets were hired by kings to be yes-men, to say God gave a green light to whatever you wanted. If you botched it, you were executed, by the king, not "Jews."