Yeah I wonder about that sometimes, the maximal balance between efficiency and inefficiency. Some things are clearly a waste (like advertising as you mentioned) but then other stuff is part of innovation, and it's sometimes a bit fuzzy between the two. On paper it's wasteful that Mazda, Toyota, Ford, etc. all had to independently develop a sedan, yet it would be far worse if we only had one car company to choose from (far worse because of how monopolies inevitably stagnate).