But God commanded the such for Christ! And His dying was a murder, a violent murder. Acts 7:52
Which of the prophets have not your fathers persecuted? and they have slain them which shewed before of the coming of the Just One; of whom ye have been now the betrayers and murderers:
God "commanded" or God gave over our Lord to those who would kill Him?
"Him, being delivered by the determined purpose and foreknowledge of God, you have taken by lawless hands, have crucified, and put to death" (Act 2:23)
"Therefore let all the house of Israel know assuredly that God has made this Jesus, whom you crucified, both Lord and Christ." (Act 2:36)
God is never portrayed as commanding what men did to His Son, but by foreknowledge He knew what they would do, and He used their lawlessness under the power of the devil to "make the Author of their salvation perfect through suffering" and "He is the atoning sacrifice for our sins, and not only for ours but also for the sins of the whole world."
You're conflating punishment from God with punishment from men that God used to "make the Author of their salvation perfect through suffering." And "In the days of his flesh, Jesus offered up prayers and supplications, with loud cries and tears, to him who was able to save him from death, and he was heard because of his reverence. Although he was a son, he learned obedience through what he suffered."
There is only one thing and one thing only that atones for the sin of mankind, the death of Jesus Christ. "For if when we were enemies we were reconciled to God through the death of His Son, much more, having been reconciled, we shall be saved by His life."
You cannot find anywhere in the bible that anything else atones for our sins but the blood-death of God's unblemished Lamb.
The beatings, scourging, thorns, insults, and hatred from lawless men never atoned for the sins of mankind according to God's Word. It is read into the text; assumed and yet never stated.
God Bless