What's the minimum tank size for a mallard? Could you go with one of the smaller ducks if your tank is small? What fish would then eat the duck poo?
The rule is 1 gallon per inch of duck, so you'd probably need a 20 gal for a mallard; a teal or bufflehead might work in a 10 gal. For duck poo clean-up, I'd use round gobies. They'll breed in the tank, but you can just dump the young in the nearest waterway.