Here is an additional analysis that is consistent with my previous answer:
For a process in a closed system, the first law of thermodynamics tells us that $$\Delta U=Q-W$$Now, if we define an isothermal process (either reversible or irreversible) as one in which the temperature of the system in its initial and final thermodynamic equilibrium states is T, and that, during the process, all heat transfer takes place (at the interface) between the system and surroundings at temperature T, then from the Clausius Inequality, we have $$\Delta S=\frac{Q}{T}+\sigma$$where $\sigma$ is the entropy generated during the process as a result of irreversibility (a positive definite quantity). If we combine these two equations, we have $$\Delta U=T\Delta S-T\sigma-W$$or$$W=-\Delta F-T\sigma$$From this it follows that for any isothermal process path, the work done by the system on the surroundings is less than (irreversible) or equal to (reversible) the decrease in the Helmholtz free energy.
Here is a specific example: If we have one mole of an ideal gas at $P_1$ and $V_1$ and we suddenly drop the external pressure on the gas to $P_2$, and then let it equilibrate, what is the change in F and how much work is done on the surroundings. Well, the change in F is just $$\Delta F=-\int_{V_1}^{V_2}{\frac{RT}{V}dV}=-RT\ln{\left(\frac{V_2}{V_1}\right)}=-RT\ln{\left(\frac{P_1}{P_2}\right)}$$The work done on the surroundings is $$W=P_2(V_2-V_1)=P_2V_2\left(1-\frac{V_1}{V_2}\right)=RT\left(1-\frac{P_2}{P_1}\right)$$Mathematically, the decrease in F, given by $RT\ln{\left(\frac{P_1}{P_2}\right)}$ is always greater than the work W, given by $RT\left(1-\frac{P_2}{P_1}\right)$, irrespective of the pressure ratio (even for compression).