When cooking without onion and garlic, the best way to flavor your dish is through spices and herbs. Each spice and herbs have a distinct taste and can add flavor to your dish.