But the corrupt election officials have access to those legitimate ballots. They would have ordered extra, stashed some away before the election, filled them out in the D/R ratio typical of the deep-blue district, and then either replace legit ballots or "find" some truckloads of "misplaced" ballots.
Chemically marking them would be of little use.