Technically that is profit maximizing, where as profit is just surplus value created. Nothing wrong with profit, profit maximizing at the expense of all else is a recipe for civilization collapse.
In our tree mushroom example, if both organisms grow faster by sharing nutrients than by hoarding, they have both made a profit.
This is why lectures should be obsolete at this point. Lectures should be a video done really well once. Class should be practice time where you can ask experts for help when you get stuck.