Below you can see the front-view size comparison of the Nikon D7500 and Panasonic G9. The Nikon D7500 is 1 mm narrower and 19 mm thinner than the Panasonic G9 but it is also 7 mm taller.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.