What you are requesting is an iron-clad protective device. Other than a license from the manufacturer, there is no such mechanism. The larger your competitor, the more likely you will be sued, because large, famous brands usually have several dozen employees who do nothing but read and search for infringing advertisements in the international marketplace for their products and services.
It is beyond dispute that "parody," and "editorial commentary," about a product is "fair use." and not the subject of any legal action -- as long as the use is not tied to directly to a commercial use.
So, perhaps if you were writing a treatise on how cosmetics are made, for the use of chemists, or you are intentionally poking fun at an industry that attempts to glorify what is in essence "face paint," and you compare your various recipes to more than one cosmetic product simutaneously, then that would provide the sort of cover (pun intended) to keep you out of trouble.
But, if you write a treatise which instructs others on how to replicate individual cosmetic products, and you compare each to the specifc product with which you are clearly attempting to compete, then you will be sued, if only to increase your costs of doing business, by your having to pay for the legal expenses necessary to defend.
Please understand that while I would like to give you an answer that guarantees you protection, there is simply no way to do so. You are in fact, trying to trade off of the good will of the products of others. That's the entire point of your exercise. Otherwise, you would make your own products and market them as your own. So, at the outset, your competitors have the high ground.
Yes, there are undoubtedly competitors doing things like you are attempting (using the "compares to [name]" formula. But, in my opinion, this legal formula becomes more and more risky, the more transparently you attempt to invade the good will of the large cosmetic firms. The reason is because the "totality of circumstances" shows the court what you are attempting is not merely to instruct chemistry students on how to make cosmetics. Instead, you are trying to sell your products as duplicates of an established and trademark registered product.
Such a device will inevitably fail, no different than were GM to advertise its Corvette Stingray as "comparable to a Ferrari 405 Italia." It's one thing for Car and Driver Magazine to do this as part of a review of the vehicles. It's quite another for GM to do it as a means of trying to make their $50,000 sports car appear more desirable, because it compares favorably to a $250,000 competitor's vehicle.
Hope this helps.