Canon M50 or 800D for stills

I went through many videos about the Canon M50 and the 800D and still couldn't choose between them, I don't have lots of experience with cameras/photography but whatever body I'm choosing I'd stick with it for a while, so what do you guys think ? My priority would be still photography I'm not gonna shoot videos and I can't get newer bodies because of the budget