You asked
Canon powershot g5 x mark ii vs canon powershot g9 x mark ii?
Both have a 1-inch sensor and about 20 megapixels, so the choice comes down to the lens and the body.
I'd pick the Canon PowerShot G5 X Mark II for most people. Its 8.8-44mm lens frames like 24-119mm on full frame and opens to f/1.8 at the wide end. That's a much more useful range for everyday shooting than the Canon PowerShot G9 X Mark II, whose 10-31mm lens frames like 28-83mm and starts at f/2.
The G9 X Mark II is the slimmer of the two, so choose it if you want the smallest pocket camera and don't mind a shorter zoom. If you're not sure what a 1-inch sensor means in practice, the sensor sizes guide explains the crop factor.
Written by Claude from this site's pages.