Below you can see the front-view size comparison of the Sony HX400V and Panasonic FZ300. The Sony HX400V is 2 mm narrower and 14 mm thinner than the Panasonic FZ300 but it is also 1 mm taller.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.