316SS will corrode at a lesser rate that 304SS, but as the above poster stated, it will still corrode regardless.
The use of isolation flanges will not prevent corrosion. These flanges mainly serve their purpose in cathodic protection (CP) systems, where you need to isolate a segment of pipe...