I thought this was interesting too. I'm not sure whether this episode depicts correct Jewish doctrine or not. Hopefully someone familiar with Judaism can help to clarify whether this is accurate or is something of a legend.

From a Christian perpective, and believing that the Messiah has already come, the New Testament tells us in Romans, Chapter 3, "For it is written, There is none righteous, not even one", that "all have sinned and come short of God's glory", and that our redemption comes only through faith in Christ. "For it is written" in verse 10 is generally thought to point to Psalms 14:1-3 and Psalm 53:1-3 where the Psalmist seems to say the same about the righteousness of man.

I'm not trying to preach to anyone, but telling what the New Testament says about the possibility of man's righteousness, and the provision for our justification, and how that relates to Old Testament teaching.

It was an enjoyable episode, though, and makes you think a little. 