Or put another way, we need to compare the net present value.
The more expensive choice now is an investment into not buying future bags, and the future returns on that investment should be discounted.
https://en.wikipedia.org/wiki/Net_present_value
https://en.wikipedia.org/wiki/Discounting