You asked

What camera should I buy instead of the canon powershot g9 x?

The G9 X is a 2015 1-inch compact, and its successor is the most direct replacement. The Canon PowerShot G9 X Mark II keeps the same 20.2-megapixel 1-inch sensor, announced in 2017, and adds a very slim body with a shorter 28-84mm-equivalent zoom. If you liked the original's size and image quality, it's the natural next step. Its zoom is a little longer at the wide end and it's a touch more compact, but the lens is still f/2-4.9-class, so it won't do much better in dim light.

If you want a pocket camera but a bigger sensor step, the guide points to 1-inch sensor compacts with a zoom, such as the long-running Sony RX100 series. That is a real alternative, not just a different badge on the same idea.

If low light or moving subjects are the main concern, a larger sensor and faster lens matter more than stabilisation, which only steadies the camera. The guide's sensor sizes page shows that APS-C is about 23 x 15mm, against 13 x 9mm for 1-inch. For that reason, the guide's first-choice advice is an APS-C mirrorless camera with its kit zoom. You get a bigger sensor, autofocus that tracks eyes, and the option to add faster lenses later, at the cost of a bigger body.

The catalogue material I have doesn't include the price pages for these cameras, so I can't quote what they cost. Check current prices before you decide, since they change.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.