Answer
Case 2 because energy is not used for expansion work.
Work Step by Step
In case 1, the gas moves the piston and does work on the surroundings. However, in case 2 the gas does no work on the surroundings and therefore has a greater change in energy.