Ketchup may work fine in your recipes. However, it lacks both the heat of the chili and the flavor of garlic. It is sweet, salty, and sour and makes for a good dip or spread. But it cannot replace the indistinguishable flavor of chili garlic sauce.