Sauté until the onion is golden, then add the garlic and sauté until it is fragrant, about half a minute longer. Add the ham, and toss until it loses its raw, red color. If using bacon, add it to the stockpot, stirring until it starts to cook, but not crispy.