Make sure you take advantage of all nine feet. The top shelf could be used for things like small appliances you don’t need that often. We have 10’ ceilings and sized that top shelf for the tallest item we planned to put up there. We also have a vertical divider the height of two shelves for 30” air filters and other tall things that we don’t want to store in the kitchen cabinets or garage. (We use our panty for more than food.) I also posted a pic of the pullout shelf DH made for me for preparing dressings and sauces in the pantry — where all the ingredients are.
Think about how you want to use the pantry as well as what you need to store in there.