You're talking stress only... you need to bring strain into the discussion.
Below is a stress/strain graph for a few grades of bolts.
The grade 8, as you can see is stronger (higher max Y), but the fracture point is almost half of the elongation of the grade 5 (x axis - less X axis means more brittle). This may not matter over a few heat cycles of the exhaust, but every time you're stretching the bolt, you're fatiguing the bolt. So over more displacement cycles, you're fatiguing the unstretchy bolt more than the stretchier bolt.

This is the case in this situation because the flange is expanding a certain displacement each time it heats up. If you're just imparting force and not displacement on the bolt head, then it makes sense to go with a stronger bolt (grade 8).