In the Legends: Z-A DLC, donuts are used to enter hyperspace zones. They can each have up to 3 bonuses, which are categorized into 5 flavors. The user can control which berries are added to a donut recipe, but the results are randomized.
This is a technical description of how LZA creates donuts from berries. I will first go over the algorithm and then finish with some examples to illustrate.
First, the game will go through each of the flavors and decide how many points it earns to roll Flavor Powers later on. The order is Sweet -> Spicy -> Sour -> Bitter -> Fresh, although this does not have much relevance as far as I can tell.