The Talmud says Jesus was stoned???

The famous part in the Talmud about Jesus being hung on Passover Eve also mentions Him being actually killed by stoning before being crucified. The Talmud also mentions five of Jesus' disciples (all of whom are unknown) being sentenced to death together with Him.

This obviously contradicts the Gospels. If we see this passage as historical proof of the crucifixion, why are these other details in there? If the passage is not historically reliable, how can we even trust that the part about the crucifixion wasn't made up?

And the Talmud mentions many other weird things. For instance, they say that one of the people mentioned as a relative of Jesus (an uncle or maybe even Joseph) was a Pharisee.

How do we know the Talmud is not talking about someone else and Jesus isn't even mentioned? The information mentioned about the character He is supposed to be doesn't line up at all.

God bless you all!