Often we're concerned with changes in thermodynamic properties during reactions, like $\Delta H_p = Q_{reaction}$ (change in enthalpy for an isobaric process). What seems odd to me is that in the derivation of this relationship,
$\Delta H_p = \Delta U + P\Delta V=Q-W+P\Delta V$
we assume the work is given by $W=P\Delta V$, which requires that the process is reversible in the thermodynamic sense. Then the change in enthalpy simplifies to
$\Delta H_p=Q - P\Delta V + P\Delta V=Q$.
Supposedly, measuring the heat transfer during a reaction at constant pressure will give the enthalpy. Even though enthalpy is a state function in general, our case requires that the process is reversible.
To what extent does the restriction of thermodynamic reversibility apply to the reaction? Do we have to assume the reaction happens slowly and can be undone, leaving only an infinitesimal change in the universe? Or does it not matter?
Please correct me if any of my points are wrong. Classical thermodynamics usually doesn't mention kinds of matter, so I'm a bit confused when chemistry comes into it.