The rounds leave the magazine, and bump into a "ramp" at the back end of the chamber. Open your slide, and look at the back end of where the round goes in. That shiny incline at the bottom is the ramp.
Take your gun to a range (safe place), and slowly rack a slide, and watch the round ride up that ramp, into the chamber. That's how the ramp gets shiny like that. If the alignment of the round in the magazine is too low with regard to that ramp, the edge of the brass can get a little trampled by the ramp. It would show up IF you look at a round that has been auto loaded into the chamber, but not fired yet.
If you check a round that has been auto loaded, and not fired, and it doesn't have the flat edge, then it's not a ramp issue, but rather the brass hitting something on the way out.
Usually, if the brass it hitting something on the way out, it will show an oblique scrape on the flat spot. If you slowly watch how an ejector yanks the brass out of the chamber, and tosses it, you'll see that there's sometimes a slight rolling action to the process. Try manually ejecting some empty brass from the chamber, and see if you can detect what's happening on the way out.
UPDATE: I took another look at that second picture. The one showing the side view of the flat spot. I do see the tell tale signs of ejection port damage to the brass. There's a slight angle to the scrape marks. See them? So, that tells me that the denting is happening as the already emptied brass is being ejected from the gun. It's hitting something on the way out. It's probably always been there, and you just picked up brass and noticed it for the first time.
Some area of the ejection port will show a shiny spot where that brass damage is occuring. A good gunsmith can sometimes open up (grind out) the ejection port in that area, to eliminate the issue. Or, if it's not that bad, and you are able to reload that brass (the dent isn't as bad as some I have seen) OK, then just leave well enough alone.
It doesn’t make sense to me that the flattened edge of the case happens as the round enters the chamber.