Let's assume the system is undergoing isobaric and isothermal process, simultaneously.
The gas of the system is assumed ideal, and its volume is changed from $V_1$ to $V_2$.
Internal energy of the system does not change, since the gas is ideal. ($\Delta U=0$)
Work done by/to system will be $w=-p_{const}(V_2-V_1)$, and the heat will be $q=-w$.
But how about enthalpy change $\Delta H$?
I know that by the definition of enthalpy, $H=U+pV$ changes to
$$\Delta H=\Delta U+\Delta(pV)$$
and since pressure is constant, the enthalpy is just
$$\Delta H=0+p_{const}\Delta V=p_{const}(V_2-V_1)$$
But other though is, using ideal gas law,
$$\Delta H=\Delta U+\Delta(pV)=\Delta U+nR\Delta T$$
since the process is also isothermal, $\Delta T=0$
Then, enthalpy is also
$$\Delta H=0$$
Which one is correct?
-Edit- I might have to specify that this question came out when solving textbook problem, Physical Chemistry by Atkins, 9th Edition, Chapter 2, excercise 2.3
"A sample consisting of 1.00 mol Ar is expanded isothermally at 273.15K from 22.4$dm^3$ to 44.8$dm^3$ (a) reversibly, (b) against a constant external pressure equal to the final pressure of the gas and (c) freely. Calculate $q, w, \Delta U, \Delta H$."
I got above question when solving for part (b)