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