Below you can see the front-view size comparison of the Canon T7 and Panasonic G9. The Canon T7 is 8 mm narrower and 14 mm thinner than the Panasonic G9 but it is also 4 mm taller.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.