And yet Christ was the lamb slain from the foundation of the world by the direct purpose and intent of God in order to pay for the sins of His children. Read Isaiah 53 --
"Yet it pleased the Lord to bruise him; he hath put him to grief: when thou shalt make his soul an offering for sin..." -- Isiah 53L10
If you read all Scripture with Christ's resurrection as its focal point and the explicit purpose to all history, then life becomes a lot clearer.
I have no idea what God thought about that. Didn’t He know that the crucifixion was going to happen, even before Christ was born? If He did know it was going to happen, and He cannot be wrong, then how could it NOT have happened?