Below you can see the front-view size comparison of the Olympus TG-870 and Canon M3. The Olympus TG-870 is 4 mm shorter and 16 mm thinner than the Canon M3 but it is also 2 mm wider.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.