Why it works: Garlic and onion match in chemistry and in kitchens. They rank in the top 1% of all ingredient pairs, and 29,030 recipes mention both. Both carry furaneol, which smells caramel, strawberry. The science ↓
The recipe
Serves 8Ingredients
Contains: milk, wheat (auto-detected from the ingredients and method; we can miss things, so check labels)
Directions
Method written by CompKitchen from the ingredient list. Not the original author's method, not kitchen-tested.
Preheat the oven to 375°F (190°C). Bring a large pot of salted water to a boil, add the green beans, and cook 4 to 5 minutes until crisp-tender. Drain well.
Cook the bacon in a large skillet over medium heat for 6 to 8 minutes until crisp. Transfer to a paper towel, reserving half the bacon and leaving a thin layer of drippings in the skillet.
Add the onion to the skillet and cook 4 minutes until softened. Add the garlic and cook 1 minute. Add the butter and let it melt, then stir in the flour and cook 1 minute.
Gradually whisk in the milk and half-and-half. Bring to a simmer and stir 4 to 5 minutes until thickened. Stir in the salt, black pepper, cayenne, and cheddar until melted.
Stir in the drained pimentos, then thin with extra milk if the sauce is too thick. Taste and add more salt and black pepper if needed.
Fold the green beans and the unreserved bacon into the sauce, then spread the mixture in a 9x13 inch baking dish.
Toss the panko with the reserved bacon, adding a little of the reserved drippings, and sprinkle evenly over the casserole.
Bake 20 to 25 minutes until bubbling around the edges and the topping is golden. Let stand 5 minutes before serving.
Found this recipe through an AI assistant? CompKitchen also shows which ingredients go well together and why, from the aroma molecules they share and how often recipes combine them. Try the pairing tools.
Explore the science
The flavor team
The pairs that carry this dish. Each one is judged two ways: how much aroma chemistry they share, and how many recipes mention both.
-
Garlic + oniontop 1% of all pairsAroma overlapstrongMentioned together29,030 recipes
Shared aroma: furaneol (caramel, strawberry).
-
Butter + milktop 3% of all pairsAroma overlapstrongMentioned together81,222 recipes
Shared aroma: (z)-4-heptenal (biscuit, cream).
-
Butter + cheddar cheesetop 3% of all pairsAroma overlapstrongMentioned together2,434 recipes
Shared aroma: delta-dodecalactone (sweet, creamy).
-
Milk + cheddar cheesetop 4% of all pairsAroma overlapstrongMentioned together1,963 recipes
Shared aroma: delta-dodecalactone (sweet, creamy).
-
Green beans + garlictop 4% of all pairsAroma overlapmoderateMentioned together197 recipes
Shared aroma: linalool (floral, citrus).
Ranks compare each pair with 20,000 random ingredient pairs on CompKitchen. How we score pairs
Flavor stand-ins for the garlic
How well each one fits the dish's main ingredients (green beans, onion, butter, flour, milk, pepper, cheddar cheese):
- Garlicthe original
- Celeryabout as good a flavor fit
Fit is the average pairing score against green beans, onion, butter, flour, milk, pepper, cheddar cheese. Candidates are from the same food group and used in at least 100 recipes. This compares flavor only: it does not check the job the ingredient does in the dish (bulk, moisture, acidity, structure).
Make it your own
Stand-ins, a drink, and quick taste fixes for this dish, ranked by how well each fits its other ingredients: shared aroma molecules and how often recipes combine them.
The Sunday pairing: one pairing, the chemistry behind it, and how to cook it. No spam, unsubscribe anytime.
Prefer an account? Create a free account for sign-in; Pro adds the full results and chemistry.