I have a few comments about this before addressing the friction issue.
1. They are not talking about ##\Delta G## for a reversible chemical reaction compared to ##\Delta G## for an irreversible chemical reaction. They are talking about an reversible gas expansion compared to an irreversible gas expansion (with no chemical reaction) in a cylinder between the same initial and final equilibrium states, both of which are at the same temperature.
2. There are many technical mistakes in this video, and you should not pay any attention to the video. It starts out OK in the discussion the isothermal reversible expansion, but, from that point on, it goes farther and farther astray from fundamental thermodynamic reality. In the end, it incorrectly determines the ##\Delta G## between the initial and final states of the system.
3. The addition of friction between the piston and cylinder for the irreversible case is a "red herring" that did not need to be introduced to describe the difference between an irreversible expansion and a reversible expansion. Moreover, the effect of friction is extremely tricky to analyze in this problem, as you have already learned. So I am going to first analyze the expansions quantitatively without friction to illustrate what is happening. After that, I'll proceed to analyzing the friction effect.
The present analysis assumes that the cylinder is in a vacuum so that external force on the top side of the piston is due only to the weights (gravel or larger weights) on the top of the piston. The piston itself is assumed frictionless, with a cross sectional area of A, and a weight W. The mass of weights on top of the piston in the initial state are w, and, in the final state, these weights have been entirely removed. The gas in the cylinder is an ideal gas (n moles).
INITIAL STATE:
Temperature T
Pressure ##P_1##
Volume ##V_1##
##P_1A=(W+w)##
FINAL STATE:
Temperature T
Pressure ##P_2##
Volume ##V_2##
##P_2A=W##
REVERSIBLE PATH:
For the reversible path, the weights w are removed gradually, so that the system is always close to thermodynamic equilibrium at the constant temperature T. So, for this path, we have: $$\Delta U=0$$and $$Q=Work=\int_{V_1}^{V_2}{PdV}=\int_{V_1}^{V_2}{\frac{nRT}{V}dV}=nRT\ln{(V_2/V_1)}$$But, for an ideal gas, $$\frac{V_2}{V_1}=\frac{P_1}{P_2}=\frac{(W+w)}{W}$$So,$$Q=Work=nRT\ln{\left(\frac{W+w}{W}\right)}$$And the
change in entropy of the system is:$$\Delta S=\frac{Q}{T}=nR\ln{\left(\frac{W+w}{W}\right)}$$The change in Gibbs Free energy of the system is then:$$\Delta G=\Delta U+\Delta (PV)-T\Delta S=-nRT\ln{\left(\frac{W+w}{W}\right)}$$The
change in entropy of the constant temperature reservoir is -Q/T, so the
change in entropy of the system plus the reservoir is zero.
For this reversible change, the granular weights are removed from the piston very gradually as the piston rises, so that some of the weights are removed at the original elevation of the piston, while others are removed at higher elevations, until the piston reaches its final elevation. So the total work done is equal to the increase in potential energy of the piston ##W(V_2-V_1)/A##, plus the increases in potential energy of the particles comprising the weight w, which are distributed over elevations between the original height of the piston and the final height. So the work done by the gas on the piston and weights is significantly more than just that required to raise the piston to its final elevation.
IRREVERSIBLE PATH:
For the irreversible path, the entire weight of granules w is removed suddenly from the piston at time zero. As a result of this, the piston spontaneously accelerates upward because of the unbalanced net force caused by the removal of the granule weights; and the piston even overshoots its final equilibrium elevation. But eventually, because of viscous damping by the gas within the cylinder, the oscillations of the piston about the final equilibrium elevation decrease, and the piston ultimately comes to rest at its new elevation. In this case, the potential energy of the granules that were removed at the initial elevation of the piston do not change; only the potential energy of the piston itself changes. So, in the irreversible case, the amount of work done by the gas is less than in the reversible case, and is given by: $$Work=W(V_2-V_1)/A=P_2(V_2-V_1)=P_2V_2(1-V_1/V_2)=nRT(1-P_2/P_1)=nRT\left(1-\frac{W}{W+w}\right)=nRT\left(\frac{w}{W+w}\right)$$In order for the work to be less, the average force of the gas on the piston (averaged over the displacement variations of the piston) must be less than in the reversible case. This lower average force is made possible by viscous stresses in the gas which act in the direction opposite to the movement of the piston.
Since the change in internal energy ##\Delta U## between the initial and final equilibrium states of the gas is again zero, the heat added from the reservoir is equal to the work done by the gas on the piston:$$Q=Work=nRT\left(\frac{w}{W+w}\right)$$So, in the irreversible case, the expanding gas does less work on its surroundings (the piston) and the amount of heat absorbed by the gas from the reservoir is also less.
In the irreversible case, since the reservoir is ideal, its
change in entropy is ##-Q/T=-nR\left(\frac{w}{W+w}\right)##. So, in the irreversible case, since the
change in entropy of the system is unchanged, the
change in entropy of the system plus surroundings is > 0. This is the result of entropy generation within the system as a result of viscous dissipation of mechanical energy.
SUMMARY:
So you can see that,
even without friction, the irreversible gas expansion does less work on the surroundings than in the reversible case, and the amount of heat transferred from the reservoir to the gas is also less. For more discussion of how viscous dissipation contributes to reducing the amount of expansion work that a gas can do in an irreversible process, see my Physics Forums Insights article in
https://www.physicsforums.com/insights/reversible-vs-irreversible-gas-compressionexpansion-work/
I will stop here an give you a chance to digest what I have said and to ask questions. If you wish, I will address the friction issue after that.