God knowing something will happen, doesn't mean he wanted it to happen. Like Josephs' brothers selling him into slavery,
ye thought evil against me; but God meant it unto good Gen.50:20
Are you sure about that? That seems to rather limit God.
According to the will of our Father, his Son as a man, as a human being, strove against bringing sinners to judgement by a law that would have put them to death,
Ye have not yet resisted unto blood, striving against sin. Heb.12:4
Striving against the sin being committed against us.....as our Savior did.
Act 2:23 this Jesus, delivered up according to
the definite plan and foreknowledge of God, you crucified and killed by the hands of lawless men.
The verse also says it was God's "definite plan." That isn't just foreknowledge.
And again:
Act 4:26 The kings of the earth set themselves, and the rulers were gathered together, against the Lord and against his Anointed’—
Act 4:27 for truly in this city there were gathered together against your holy servant Jesus, whom you anointed, both Herod and Pontius Pilate, along with the Gentiles and the peoples of Israel,
Act 4:28
to do whatever your hand and your plan had predestined to take place. (ESV)
Jesus's death for our sins was God's plan to satisfy his wrath against sinners.
Rom 3:23 for all have sinned and fall short of the glory of God,
Rom 3:24 and are justified by his grace as a gift, through the redemption that is in Christ Jesus,
Rom 3:25 whom God put forward as a propitiation by his blood, to be received by faith. This was to show God's righteousness, because in his divine forbearance he had passed over former sins. (ESV)
Heb 2:17 Therefore he had to be made like his brothers in every respect, so that he might become a merciful and faithful high priest in the service of God, to make propitiation for the sins of the people. (ESV)
1Jn 2:2 He is the propitiation for our sins, and not for ours only but also for the sins of the whole world. (ESV)
1Jn 4:9 In this the love of God was made manifest among us, that God sent his only Son into the world, so that we might live through him.
1Jn 4:10 In this is love, not that we have loved God but that he loved us and sent his Son to be the propitiation for our sins. (ESV)
We only have salvation because of Christ's propitiatory sacrifice. That was God's plan the whole time; there was and is no other way to be reconciled to God than through Jesus dying in our place.