It is difficult for a human being to decide either with ethics or not. When this is included, the decition follows social parameters. I have two possible options whether survive or be hopeful.
On the one hand it is possible take ethical desicions because unless humans are very sensitive when it comes to their survival, we are used to staying calm, patient and hopeful. It is obvious that for example, if you are alone with a friend in a desert and your friend is dead but time goes by and you need food, you will be desperate but you will have to find other ways of surviving or get in distractive with different activities. It is too hard to be concious during the moment of desesperation but it is s good intention to clear your mind and restart.
On the other hand, it is not possible to take ethical decisions beacuse you need to survive and find the way to return home, according to the previous example. Humans beings arr able to look for resources to continue living.
Your friend is already dead so you will have to decide to it eat or leave it there but the or she is a perfect resource. Also you will have to forget about everything and not even care that it was your friend. Forgive no matter how.
As a conclusion, in the case of survival it is your own decision whether to be hopeful and survive or be patient and forgive your self.