score:3
The basic gist of the question is Moses represented the law and therefore failed and Joshua represented faith and therefore succeeded. The clearest answer is that Moses/Joshua is a foreshadow (type of prophecy) of John the Baptist/Jesus.
There are two components to question.
There he [Jesus] was transfigured before them. His face shone like the sun, and his clothes became as white as the light. Just then there appeared before them Moses and Elijah, talking with Jesus. Peter said to Jesus, “Lord, it is good for us to be here. If you wish, I will put up three shelters—one for you, one for Moses and one for Elijah.”
This pattern is certainly true for Elijah preparing the way and being fulfilled by Elisha. This is a direct foreshadow of John the Baptist preparing the way and his work being fulfilled by Jesus, because its a prophesy of Malachi 4:5 (long after the lives of Elijah and Elisha):
“See, I will send the prophet Elijah to you before that great and dreadful day of the LORD comes.
The person Malachi is referring to is John the Baptist.
The presence of Elijah and Moses at the transfiguration in Matthew 17:2-4 is an indication that Moses is one who prepared the way for salvation (Jesus) in the same way that Elijah and John the Baptist did.
The issue with Moses representing the law and therefore dying before seeing the promised land is because he lost patience with the Israelites and patience and love are a key part of God's character, Exodus 34:6-7 (NIV).
The Lord, the Lord, the compassionate and gracious God, slow to anger, abounding in love and faithfulness, maintaining love to thousands, and forgiving wickedness, rebellion and sin.
Thus Moses sinned. However all the Old Testament and New Testament figures sinned, except Jesus. Elijah ran away, John the Baptist had to question whether Jesus was the Messiah. The idea is Jesus is the only sinless person, thus he is the true saviour. So basically everyone in the bible sinned, except Jesus and not simply Moses. Therefore, in my opinion it's harder to make that case that Moses represented the law and therefore failed and Joshua represented faith and therefore succeeded. It is just my opinion however.