why can’t God just forgive

Why couldn’t God just forgive us instead of allowing Jesus to die?

The question at hand bears resemblance to the query of why a judge cannot simply forgive someone for breaking the law. If God were to grant forgiveness without consequences, then what purpose would laws serve? Laws exist to be obeyed, and they carry specific penalties that must be applied when someone willfully violates them. If…