If hydrochloric acid is so strong that it can break complex food molecules, why does it not affect the walls of stomach?
Stomach is internally protected by mucous membrane which prevents the action of HCl.
In our stomach, mucus is a digestive juice secreted along with other gastric juices. The mucus protects the walls of the stomach from the corrosive effects of HCl.