My confusion regarding the difference between the heat given off in a reaction that takes place in an electrochemical cell compared to in a beaker/appropriate container when the reactants are simple mixed, arose from the following problem question:
For the reaction:
\begin{align} \ce{HgCl2~(s) + H2~(g,1~bar) &-> 2Hg~(l) + 2H+~(aq) + 2Cl- }\\ \Delta G^\circ &=-51.64~\mathrm{kJmol^{-1}},\\ \Delta S^\circ &=-61.6~\mathrm{JK^{-1}mol^{-1}},\\ \Delta H^\circ &=-70~\mathrm{kJmol^{-1}}.\\ \end{align}
Part (a) of the question then asks: "Determine how much heat is given off at $298~\mathrm{K}$ per mole of $\ce{HgCl2}$ if the cell is operated reversibly"
The correct approach is to use $T\,\mathrm{d}S=\mathrm{d}q$ giving a value of: $18.36~\mathrm{kJmol^{-1}}$
Then part (b) asks: "Now determine the heat given off if the reaction is brought about by simply mixing the reactants"
I realised that the electrical work done in the cell would now be given off as heat so I just added the value for the Gibbs free energy to the value calculated in (a) and got: $70~\mathrm{kJmol^{-1}}$. This answer is correct but my tutor noted that this value is the value for the enthalpy change which would have been a shortcut to the answer. I didn't spot this and I don't understand why this is the case so wouldn't spot it again, should another question like this come up. Please can you clear up why this value is the enthalpy change.
I have some issues with the above working (it is all correct but I don't fully understand it).
Firstly, in part (a) I had to use the Clausius inequality (except it was an equality since the process was carried out reversibly) to find $\mathrm{d}q$. However, why must I use this equation because $\Delta H=q_p$ - the process was carried out at a constant pressure?
Secondly, if the heat given off in part (b) is $70~\mathrm{kJmol^{-1}}$ doesn't this violate the Clausius inequality? I must be wrong but it seems that this must be the case since $\mathrm{d}S \geq \frac{\mathrm{d}Q}{T}$ and using the value for the entropy change ($\Delta S^\circ=-61.6~\mathrm{JK^{-1}mol^{-1}}$) and the new calculated value for the heat given off ($70~\mathrm{kJmol^{-1}}$) then dividing this by $298~\mathrm{K}$ gives a value larger than the value for the entropy change but the Clausius inequality says that the change in entropy is greater than or equal to $\mathrm{d}q/T$. What is going on there?