Also, where is Mozilla getting money from in the first place? They only offer free products. The last time I checked, they're getting most of their money from Google. That doesn't automatically mean Google has Mozilla in their pocket, but it's definitely a red flag.
The Google deal changed in 2014, at which point it became a five-year deal with Yahoo! in the US, and other partnerships (I don't remember the details to be honest) elsewhere, IIRC Yandex in Russia and Baidu in China?
That overlooks the most important difference, the reason non-profits exist: For-profit companies exist to make money for their owners; non-profits exist to serve a public mission, such as protecting and furthering the free and open web (or feeding the starving or promoting peace or etc.).
Also, the salaries are not at all comparable. If the founders of Mozilla had made it a for-profit company, they'd be among the Silicon Valley billionaires (and the founders of Mozilla's predecessor, Netscape, are indeed among them or at least extremely wealthy). There are many very talented people who gave their careers to the free and open web, when I expect they could have been making a lot more money elsewhere. I doubt Mozilla competes with Google on salary.
Of course, for this specific case of non-profit and for-profit, there's a decade and more of history bearing out the sense that Mozilla is far better than the corporations from this particular political/privacy/no-ulterior-motives stance.
Additionally, I don't see why monetary/resource efficiency is relevant: the thing that actually matters is the product, and while being efficient/nonfrivilous is likely to help make a good product, it doesn't actually seem like a relevant end goal. Everything else equal, I'm still going to buy from a company that "wastes" 99% of its money if its product is better than the one that doesn't "waste" anything.