>>2944846EOS M5 is significantly bulkier than your usual point-and-shoot. And those EF-S lenses with the adapter become 2.5x fatter and stop being pancakes.
Try Panasonic GX85, or GM1 if you want something really small. 3 pancake primes and 2 pancake zooms exist for those.