"There is no greater love than this, to lay down one's life for his friends". (John 15:3).
Military men fighting to keep their own men alive and to keep them from capture by a brutal enemy would hardly amount to fighting or dying "for nothing". It's a blight upon mankind that modern morals and values, (like yours), are pretty much the reverse of old. Political correctness and faithlessness have done an insideously grand job of surgically removing man's spine from him and leaving him without honor.
For the record, my ‘morals’ match the Code of Conduct for members of the Armed Forces.
Only when evasion by an individual is impossible and further fighting would lead only to death with no significant loss of the enemy should only consider surrender. With all reasonable means of resistance exhausted and with certain death the only alternative, capture does not imply dishonor.
Not everyone is Rambo, despite what the 101st Fighting Keyboardists say. No good decision was ever made in a swivel chair.”