But if you put aside the security or the bug free status of the whole thing, a true democratic vote has at least 2 properties:
1. it's anonymous
2. it can be audited by a layman
Because of the complexity or bugs or whatever, #1 cannot really be guaranteed. Voting machine vendors will say they have no way to track voters until someone finds a flow or figure it out. Or machines could be altered or hacked or...
But really the biggest problem is #2: because if there's a problem, you need a paper trail. Because in the event of a recount, you want your average joe or jane to be able to recount ballots.
You could bring all the blockchain stuff (because I often hear that) or what not into the argument, you still wouldn't be able to do both #1 and #2.
So to me, voting must remain a paper thing.