I actually don’t like this XKCD, this is a bad answer to why electronic voting is bad.
Mostly because it is a largely obtuse process that most people can’t see or understand.
“Trust the magic rock is counting fairly and that bad people who would want to manipulate it in order to obtain power and conquer you haven’t had a chance to do so.” You cannot code your way out of that.
Everyone understands marks on paper. No one understands buffer overrun RCE, resistive touchscreen calibration, or database triggers and log sharding.