Defibrillators aren't always the answer. They won't defibrillate in all circumstances, there has to be certain symptoms present.
It would also depend on when the medical issue started. Trying to get someone out of a cockpit seat on approach would not be easy to do without posing a risk to the other pilot. I've had to do it in cruise and it was hard enough...