1. Create two constituent queries: one for those that should only export the Head of Household and one for those that export both records.
2. Export using these queries and the corresponding Head of Household option.