Yield-stress fluids in porous media: a comparison of viscoplastic and elastoviscoplastic flows