Berkshire definitely got the better end of it. Apple shares are all on the secondary market, they didn't get any of Buffett's money. They did benefit from the cachet of having Berkshire as an investor but I think they would have done just fine without them as well
That's the truth of any company Berkshire invests in, they would have been fine without them. That's the qualification for Berkshire to invest.
Apple got a lot of advice from WB they had many capital allocation questions ass he was kicking the tires.