Canon doesn't sell the M2 in the North American market and since I notice the Amazon link goes to the US store, I'm guessing the OP is in the US and that camera wouldn't be an option (but the other models you mentioned are available).
Of those I'd probably favor the Canon T5 or Nikon D3200 or even D3300.
I would avoid one of those "bundles". The accessories are typically junk-grade and not worth it.
When you buy the camera from either Canon or Nikon, it will include the camera body, neck-strap, battery, battery charger, software and documentation, but will NOT INCLUDE a memory card (so you'll need one of those, but those are cheap.)
When ordered as a "kit", Canon or Nikon will include a single 18-55mm f/3.5-5.6 zoom lens. That's moderate wide-angle through moderate telephoto zoom range -- but not strong telephoto.
You don't need any UV filters to protect the lens (this is a religious war, but your camera will already have an internal UV filter and people only buy them as "protection". They can cause ghosting reflections and flare -- so while possibly offering some protection they also degrade image quality.
The camera will not include any type of camera bag. If you want a camera bag, I suggest buying something that doesn't scream "EXPENSIVE GEAR INSIDE... STEAL ME!" (don't get a bag with a Canon or Nikon logo on it.) Simple bags are not very expensive and as you don't need a huge bag to store a lot of lenses... probably $15 to $25 is more than adequate.
You can get a T5 for $400 with 18-55mm kit lens. Add in a 16GB Sandisk class 10 SD card (probably $15) and a bag (maybe $15-25) and you're ready to shoot photos for under $440. This leaves you with enough money to get the 50mm prime lens.
The Canon EF 50mm f/1.8 STM lens is $125 list. You want the "STM" version. Do not get the EF 50mm f/1.8 II (that's the prior model which was just replaced this year. It won't say "STM" in the name).
The EF 50mm f/1.8 II actually had very nice optics. There was nothing wrong with the glass. The problem was the build quality, the very noisy and very slow focus motor speed and it only had 5 aperture blades which meant that when you want the background to be blurred, points of light blur into pentagons and didn't look circular at all. This creates a blur quality that was very nervous & jittery. But the in-focus areas looked great!
The EF 50mm f/1.8 II has been retired after a 25 year run... with the new STM version. The optics are identical... not just close... identical. But they fixed everything else. The old noisy and slow focus motor has been replaced with a much quieter (virtually silent) stepper motor which is also much faster. The old lens could only be manually focused if you disengaged the motor by switching from AF to MF (it didn't support full-time manual focus override). The STM motors DO support full-time manual focus over-ride (the focusing ring is not mechanically attached to the optics... it is a "focus by wire". A computer senses you turning the ring and the motor moves the focusing element for you... this will only happen when you half-press the shutter. (or otherwise activate the focus system). The 5-blade aperture has been replaced with a 7-blade aperture which provides a significantly better look... no more jittery/nervous blur quality. The price tag for this new lens... is EXACTLY the same as the old non-STM lens. So there's nothing to be saved by buying the non-STM version. You may find a few non-STM lenses on the market (Canon doesn't make them anymore)... but even if they knock a few bucks off the old model, I wouldn't get it... get the STM version.
On the Nikon side, the D3200 and D3300 will be very good cameras (and I would not hesitate to recommend them). But Nikon's 50mm f/1.8 lens is $217. They make a 50mm f/1.8 lens for around $130... but it doesn't autofocus on a D3200 or D3300 body (and you WANT autofocus.) Nikon originally used in-body focus motors. They eventually switched to in-lens focus motors (and this reduces the body prices) but they still make lenses for cameras with in-body motors as well as lenses with built-in (self-contained in the lens) motors. The D3200 and D3300 don't have in-body motors so they can only auto-focus if the lens has it's own motor. (Canon never made an in-body motor... all autofocusing lenses have their own in-lens motor.) Apart from the price difference, you'd be very happy with the cameras.