That's why the current gold standard is a machine that marks a human-readable paper ballot, and then a drop box, and then a separate machine that reads and counts the ballots. At all times, the physical manifestation of people's votes sit in a guarded box, as piles of physical ballots that can be read and counted by humans, if necessary.
The initial ballot marking machine is good to have because it can prevent overvotes (marking more options than allowed, invalidating the ballot) and can make sure that voters intend their under votes (marking fewer options than the maximum allowed, such as when someone intentionally chooses not to vote on a particular item). The 2000 election taught America what can go wrong with ballots physically marked by the voter, even through a punch card machine. Even since then, there's been issues with what to do with stray marks or incomplete markings on optical scanned ballots (akin to Scantron tests when I was in school).
And once the ballots are marked, it's convenient to have reliable machines count the votes on the ballot. That way vote reporting is quick.
But the paper trail itself is the most important. It has to be a human readable ballot that the voter can visually verify before dropping it into the ballot box.