You asked
Which camera would replace a canon powershot g5 x for both stills and video?
The closest step up from the Canon PowerShot G5 X in this catalogue is the Canon PowerShot G5 X Mark II. It keeps a 1-inch sensor, so stills quality should be similar, and adds a pop-up viewfinder and a 24-120mm-equivalent zoom. It is still a pocket compact, so it stays easy to carry.
The guide can't yet recommend it for video. The pages for both models don't give their video specifications, so I can't confirm 4K, frame rates or recording limits. Before buying, check the points in the guide's video checklist: stabilisation, how long the camera records before stopping in heat, and rolling shutter in fast pans. These usually matter more than a headline resolution if you film talks or walking shots.
For stills, a 1-inch sensor is a premium compact size. The sensor sizes guide explains that APS-C and full frame gather more light. If the G5 X struggles in dim rooms, a larger sensor would be the bigger improvement. The catalogue has no such camera on this page, so the guide can't name one here.
The catalogue entries for these two cameras don't include prices, so the guide can't say what either costs.
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}.