Does cardiac arrest hurt in any way?

In In general...No. Ventricular fibrillation causes loss of consciousness almost immediately.
By itself - NO. Cardiac arrest leed to stoping in blood flow and this result in unconsciousness. There can be pain just before depending on the cause of cardiac arrest ( massive heart attack ) or after cardiac arrest due to successful resuscitation efforts.