I reinstalled the printer using the "airprint" option in OSX. This bypasses the regular HP drivers and enables me to control one-sided and two-sided printing.
Somehow, along the way, the original HP installation also started working again. Maybe HP patched the driver. It's a mystery to me. (Using Mac OSX Yosemite).