Peter, James, and John came to realize that even in talking about death, it was good to be with Jesus.
"This is My beloved Son: hear Him," God said to Peter. In other words, Jesus is infinitely superior to Moses and Elijah, to the law and the prophets.