There is a bit of typology here.
We have Judah offering to take the punishment for his brother's sin. Christ
was from the tribe of Judah, and of course, offered Himself and took the
punishment for our sins.
 W.H. Griffith Thomas, Genesis: A Devotional
Commentary, pg. 424.
3 All Scripture citations in this study are taken from the King
 Matthew Henry, cited in Plumer, Studies in the Book of
Psalms, pg. 491.