I don't even understand the complaint. The player ran straight into a confrontation because that's what the player CHOSE to do. It was obvious to me that the player had enough choice in that short demo whether to engage the enemies in combat, or avoid them. The mechanical tools afforded the player clearly allowed for a stealthy escape undetected.
So your complaint should not be with naughty dog as if the game design is at fault, rather the choice of the person playing the demo. So there's an easy solution...
You just make your own choice when you finally get to play the game
yay!
Edit:
Otoh, the main character attacking and killing those guys is not at all at odds with the story. As the story intends to present and uncomfortably brutal, and unforgiving world where people don't work together towards survivial, and its basically kill or be killed. When they're strapped for supplies and they think they can take what they need from an enemy quickly via ambush, they'll def do it. To me it shows just how violent and visceral the post-apolcalyptic world of TLOU is, and how the characters are forced to do things that we would consider uber sadistic and sociopathic.