You asked
Panasonic lumix g9 vs panasonic lumix gx8?
The Lumix G9 and the Lumix GX8 share the same 20.3-megapixel Micro Four Thirds sensor (crop factor 2.0) and in-body stabilisation, so the lenses you can use are the same on both. The difference is the body. The Panasonic Lumix G9 is the stabilised stills body with fast bursts, announced in 2017, and the guide notes it is now cheap used. The Panasonic Lumix GX8, announced in 2015, is the older mirrorless body. If you shoot sport, wildlife or anything that moves quickly, the G9 is the better fit for its burst speed. If you mostly shoot landscapes, travel or street at a gentler pace, the GX8 covers that well and gives up little on image quality.
Whichever body you choose, the lens matters more for dim light. A fast lens lets in more light and blurs backgrounds more than stabilisation does, because stabilisation steadies the camera, not the subject. Two good options for both bodies are the Panasonic Leica DG 25mm f/1.4 II, which frames like a 50mm on full frame, and the Olympus M.Zuiko 25mm f/1.2 PRO, which is faster still but gives up some size and simplicity.
The guide cannot say which body is better value on your budget, because this answer does not include prices. Check the used market for the G9 and compare it with the GX8 before you decide.
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}.