Be a nice human being and you won’t receive that treatment. If your McDonalds wait staff are generally malicious without any provocation, well vote with your feet, nobody is making you eat McDonalds, the sales numbers will correct he problem.
There’s a lot of evidence of this happening in the USA if you just do a search. It’s uncommon, but it happens. At those prices, I’d just rather purchase the item to be made again.
But yes, be a good human.
In general they don't care, it's not coming out of their paychecks, they'll give you another burger, go away now.
When I worked at McDonald's we'd have the favorite burgers pre-made and they'd be left at the warming tray, so orders can be taken care of in maybe 30 seconds, but I guess nowadays that's too wasteful so the burgers are made on demand. There was a day like "Big Macs for $1" day, so we had a line of maybe 50 Big Macs queued, wrapped and ready to eat, that the foreman said "Slow it down with the Big Macs!".
I didn't work there long, but I don't remember anyone doing that.