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.
Jesus is one person with two natures
He is worshiped (Matt. 2:2,11; 14:33; 28:9)
He worshiped the Father (John 17)
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.