There are obvious links here to theories of atonement, and in particular penal substitution. Whilst I don’t like the theory on its own, when taken with other theories I find that it can add something to the whole idea of atonement. However, to do this I find it helpful to remember that Jesus was both human and divine, and that in the Trinity God is Father, Son and Holy Spirit, and as the Athanasian Creed says :
Such as the Father is; such is the Son; and such is the Holy Ghost.
So, instead of God requiring Jesus to go to the cross, it is God too who goes to the cross, which makes in more an image of love than an image of vengeance.
So God puts and end to the need for sacrifice by self sacrifice!