In fact, everything dies in a manner much more spectacular than if you had crashed the moon against Earth. Or Venus. Or even Saturn.
The physics and mathematics behind this are enough to fill a few books, but the short version of it only needs you to take a couple things into account:
Now let me tell you something about Jupiter. From the second link in the paragraph above:
Jupiter is by far the most massive planet in the solar system. It is approximately 2.5 times more massive than all of the other planets in the Solar System combined.
What this means is that if you threw Mercury, Venus, Mars, Saturn, Uranus and Neptune against the Earth, with all of them colliding at the same time... It would still deal a few orders of magnitude less damage than that wormhole.
Suppose it does not impact on Earth. The very passage of that wormhole through our solar system in a flyby trajectory with a perihelion low enough to intersect Earth's orbit would be enough to end all life here. It would destabilize all planets' orbits. The pull on Earth would break the tectonic plates. We would see hitherto unseen extreme earthquakes and volcanic eruptions all around the globe, with the latter covering the skies with ash and toxic smoke. And in the very least Earth's orbit would become much more excentric in the aftermath, so any survivors either calcinate in a super summer or freeze in a super winter. In both scenarios, only microbes would have a chance of survival, and it might not be a good chance.
You probably wanted this question answered with a focus on the traversability of the wormhole, should it touchdown on Earth.
Well... An impactor with the mass of the Moon could probably make its way through more than half of the way to the planet core. An impactor with the mass of Jupiter might just go through the Earth from one side to the other like a rifle bullet going through a person.
Unlike a bullet though, the wormhole will drag Earth along its path due to its massive gravity. Remember, that beast has almost 318 Earth masses.
The distant mouth - the one that did not impact Earth - will spill a lot of planetary mantle, along with some planetary core and crust (and impurities such as gases, maybe a small part of the oceans, and a lot of organic material) at speeds measured in kilometers per second. Some bits have enough speed to escape the gravity of the wormhole.
On the side that did impact Earth... Well, the impact burst Earth to pieces like an egg that fell from an airplane. Most pieces will trail behind the wormhole, and given some millions or billions of years they may settle as a ring system around it. Some pieces are lost and will either orbit the Sun as comets or escape the solar system altogether.