A soldier does not pick their enemy. Politicians decide if an enemy exists and then points them out to the soldier. The existential concept of enemy has nothing to do with the soldier as they cannot create nor uncreate their enemy. Only politicians, and the people who elect them, control such things.
Stalin actual toyed with the concept of a totally volunteer army, one where volunteer soldiers would elect their officers and only participate in actions with which they agreed. It didn't go well. Such an army is next to useless in the real world.