Below you can see the front-view size comparison of the Panasonic G9 and Sony A77 II. The Panasonic G9 is 6 mm narrower and 7 mm shorter than the Sony A77 II but it is also 11 mm thicker.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.