There are many food-grade stainless steels, and 304 is only the minimum standard. 3 16 stainless steel is much better than 304 stainless steel in oxidation resistance and corrosion resistance, and 3 16 is also better than 304 stainless steel in hardness.
For food, try to choose 3 16 stainless steel. Of course, if the requirements for life are low, there will be no harm in using 304 stainless steel.