If you saute the garlic for as long as is required for the onions, you will certainly burn the garlic, producing a bitter flavor. If you shorten the sauteing time of the onions to accommodate the garlic, your onions will be insufficiently cooked, giving your dish a raw, un-sweet, oniony flavor.
**
Asian Recipes **