If you finely mince the garlic and add it to the hot pan, it mostly gets cooked but leaves a pungent flavor. If you prefer it more mild, add the garlic along with the vegetables.