As a critical care nurse, the miraculous CPR recoveries are such a horrible disservice to our patients and their families. CPR is not two minutes of some light exercise and then the person wakes up and is ok forever.
It's 20-30 mins of intense, brutal, scary, undignified activity followed by best case scenario, we put you in the ICU, deliberately make you hypothermic for a day or two, and hope you wake up. That increases your chances of surviving the incident to a whopping 64%.
Surviving to discharge and having a meaningful recovery is a whole other ballgame, and depends a lot on the condition you were in when you had cardiac arrest in the first place. Your elderly grandpa with cancer, sepsis, bad kidneys, etc. is probably not going to go home. Your middle-aged wife who came in because she was having a heart attack actually stands a good chance.
Movies like to show people shocking a flatlined patient who just pops up and walks away when in reality presenting fully flatlined means you're 2-3 times less likely to be resuscitated at all.
I'm happy to leave some leeway in fictionalized depictions of medical care for the sake of story progression. But the complete ignorance currently common in fictional resuscitation scenarios feeds a really malignant sort of magical thinking that keeps us torturing elderly people. I'd really appreciate less of that in my job.