Detergents are okay on yellow metal, it's the sulfur and HP additives that attack those. Gear oil is full of sulfur and HP additives, that's why everybody enjoys how it smells! Bar oil is, in my assessment (which nobody should care about, especially Daryl) is whatever oil base is coming out the end of the pipe on a given day with a LOT of tackifiers added to it. Note that there are no performance specs on the bottle from ISO, SAE or the chainsaw cutter's consortium. It just says it makes your blade last longer, and that it works on "all" chainsaws.
My machinery is effing expensive. I've never paid for a car what I paid for my mill and lathe. They are the most expensive things I own. In light of that, I stick with oils that are stated for a specific purpose or specified by the manufacturer for use on their tools. Get this straight, I'm not telling you what to rub on your baby, that's your business. I just have a sound rationale on how I treat mine.