Sauté onions first, because garlic burns at a lower temperature and cooks more quickly. When you add the garlic to the onions, turn the heat down on your stovetop and keep an eye on your garlic. If the garlic burns, it can have a bitter taste.