Peter didn’t want him to be crucified. Different situation. He was just expressing his dismay at the thought of a good friend being put to death.
How would you feel if your best friend said that he must go somewhere and then be put to death? Wouldn’t you say that he/she was nonsensical too?
There are two choices:
1. Jesus revoked His previous statement.
2. Jesus lied.