Just read the section of the death of Herod -
he was struck down because he was being worshipped by some as a god, and did not disclaim it.
Jesus accepted worship as God.
The contrast is not specifically pointed out in the bible, but the two situations are in there on purpose, of course.
I recently realized that Stephen’s stoning basically backs up the historical fact that Jesus claimed equality with God before the sanhedrin. Stephen was stoned for saying this:
Acts 7:56
Look, he said, I see heaven open and the Son of Man standing at the right hand of God.
His blasphemy was the same as Jesus claiming divine privilege and equality with God Himself on behalf of Jesus of Nazareth. Even the words Stephen used were an echo of what Jesus said at His time.
It is one more piece of evidence that Jesus claimed equality with God and was condemned to death for it.