Any difference in consumer price of the identical product would be largely due to advertising.
It’s not that brands spend money on ads so they have to raise the prices. It’s that advertising enables brands to charge more because they can