This is a hypothetical wish about the past, so we use the Past Perfect tense 'had done'. The structure for wishes about past situations is 'wish + past perfect'. 'Do' is present tense and 'did' is simple past, neither of which can express a hypothetical past situation that didn't happen.