The exhaust gasket is made of layers of rings, I cut one in half to show the cross-section.
The gasket will compress a little but might not be enough for the flanges to make contact, the pipes might loosen with the joint flexing.
This is what a pipe joint looks like with that type of gasket: