Below you can see the front-view size comparison of the Canon SL2 and Pentax K-70. The Canon SL2 is 4 mm narrower and 4 mm thinner than the Canon SL2 but they have the same height of 93 mm.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.