For electrolytes I use any combo of sports drink, water, and Endurolytes capsules. Gels and blocks and things are relatively low in electrolytes. I sweat like a horse and finish hot weather rides covered in salt crust, so I have to keep up on replacing lost minerals or else I end up cramping.
For calorie replacement I'd rather stop and eat real food. Long rides require more protein than any of the bars offer.