Onions are a pantry staple that most of us always have in the kitchen, and not too many other ingredients really have their same flavor. Shallots are an allium, meaning they're in the same family as onions, and while they aren't as commonly used and do taste different, there are times when you should try using them in place of onions.