The iPhone Duo isn't lighter or thinner. Apple's difference is treating the inner and outer screens as two scales of the same interface rather than two separate spaces.
RAM and SSD prices are much higher than they were two years ago, and AI is often blamed. The connection is real, but it is not as direct as it sounds — there are several steps in between.