Cars with automatic transmissions (either planetary gear or dual-clutch) do often get better gas mileage than those with a traditional manual stick shift.
The reason is not what some might think. Once, a manual transmission was considered an economy feature. Cars with manual transmissions had a final drive ratio tuned for fuel economy.
Today, a manual transmission is considered a sporty feature. Cars with manual transmissions today are often tuned for performance, not economy. This can be seen in both the gear ratios of the transmission and how the engine is tuned. The result is a car that is zippier to drive, but less efficient.