Matthew tells us something highly important about this trial. This was indeed a kangaroo court. Their decision had been made long before this night. And so they didn't particularly worry about the niceties of legality, truth or justice and the judicial system because of that. They brought witnesses before the Sanhedrin but these folks couldn't even agree on their stories.
Jewish law says that the testimony of a witness is acceptable only if it corroborated by another.
In other words, two men, as it was then, have to testify to the same story. But the gospels tell us that none of them matched up. And so the court began to look a bit ridiculous. It had degenerated quickly from a trial where justice was the purpose into a spectacle where the ends were justified by any means possible. As long as the job gets done, anything goes.