You asked

Which g9 lens is best for handheld travel photos in dim light?

The guide can't name a lens for the Panasonic Lumix G9 from what it covers. Its pages describe the camera bodies, not the lenses that fit them, so any lens name would be a guess.

If you mean the Panasonic, the Panasonic Lumix G9 is a Micro Four Thirds body with in-body stabilisation, and the page notes it is now cheap used. The Panasonic Lumix G9 II is the newer model, with a 25.2-megapixel sensor. Stabilisation steadies the camera, so it helps with slow shutter speeds in dim interiors. It does nothing for moving people, which need a faster lens or a higher ISO. For dim light, the lens's maximum aperture matters more than its zoom range.

If you meant the Canon PowerShot G9 X, that is a fixed-lens compact with a 1-inch sensor. It has no lens to choose, so the question is whether its fixed lens and sensor suit dim travel shots. See the Canon PowerShot G9 X page.

For the wider picture, the Travel guide says to weigh the camera with its lens, and that a zoom covering wide to short telephoto covers most travel pictures. The sensor guide explains that a good APS-C camera is usually enough for travel, and that lenses and light matter more than the last step of sensor performance.

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}.