Is it better to store milk I've pumped in bags or bottles?

Either is fine. There is no benefit of one over the other. Bags are more economical, but not reusable, and take up less space in your freezer. Bottles can be reused after cleaning and are more convenient when storing milk in the fridge, since they only need to be warmed and are ready to be used.