Oh, my bad. Sorry. Here’s the main differences in the link below. Mirrorless is probably more forward thinking, if you can get it for a good price. It has a electronic viewfinder as opposed to an optical one using mirrors in the T7. It will take better pictures in the dark.
https://cameradecision.com/compare/Canon-EOS-R50-vs-Canon-EOS-Rebel-T7
That’s highly debatable