They're both flavorful bases for all sorts of dishes but there are some key differences—learn the best uses for each, plus when you can swap one for another.