I think both have their pluses. I know that some people make really detailed plans and shop ONLY for those items to make sure they have 3 meals plus snacks and drinks a day. I also know some people really shop to restock their pantries because they know what their family likes and eats.
This brings me to coupons and shopping apps. Do you coupon? Do the stores in your area double your coupons? Do you use any type of shopping apps? Budget Girl, a youtuber that I highly recommend you watch, price matches at Walmart using a program called Deals to Meals. Now the Walmart in my area does not price match. They do offer a price catcher that promises to check their rivals to see if they offer a cheaper price and if they find a product cheaper then you get that credit and you can put that credit on a Walmart e gift card.
So is there method to your madness?