One of the doctrines that many people fail to understand concerning Jesus is the doctrine of the hypostatic union. This is in the teaching that Jesus has two natures: God and man. In other words, Jesus is both God and man at the same time. This is why we see some scriptures that point to Him being divine and others pointing to Him being a man. Below is a chart illustrating the two natures of Jesus as derived from scripture.
This is not a made-up doctrine. Rather, it is a doctrine derived from observing God's word. It is true that God cannot die. It is also true that man can die. But we see that Jesus has two natures, not one. It was the human part of Jesus that died on the cross, not the divine But, because He is both God and man in one person, and because He was sinless, His sacrifice is sufficient to cover the sins of the world.