Shemot Rabbah 15 (a midrash on Passover):

“You shall not leave any of it until morning; and what remains of it until morning you shall burn in fire” (Exodus 12:10). “You shall not leave any of it until morning” – just as I will not leave any soul of the Egyptian firstborn, so, “you shall not leave any of it until morning.” It is analogous to a king who told his sons: Know that I judge capital cases and convict [the guilty]. Offer a gift to me, so that if you come before my tribunal I will transfer [aavir] your verdict to others. So, the Holy One blessed be He said to Israel: I am dealing in capital cases, and I hereby inform you how I can spare you with mercy – with the blood of the paschal offering and the blood of circumcision; and I will grant atonement to your souls, as the passage [haavara] that I will make is severe, as it is stated: “I will pass in the land of Egypt [on that night]” (Exodus 12:12). Likewise, Israel says: “The Lord also will be a haven for the oppressed, a haven for times of trouble” (Psalms 9:10).

Interesting that at least at some points the Rabbis were happy to explain passover in both penal and substitutionary terms.