I know I've heard everyone's favorite metallurgist, John Palmer, answer this exact question in a podcast but I don't remember exactly what he said. Anyway, either is fine.
316 has higher chromium content and resistance to corrosion. There have been reports of typical brewing water liquor chloride content causing corrosion with 304. Its best to go with 316.