If I were to guess, whichever food is more aromatic is going to go into your nostrils and whatever you eat will taste like it. However, the example doesn't support that idea, since I don't think potatoes are more aromatic than berries. That would be an interesting experiment, although it's pretty off-topic, if you ask me.