When merging leads is it possible to only keep the tasks from one lead?

Hey all! Thanks for taking the time to review my post.

We have an automated process that adds tasks to leads when they are created. The challenge here  - when we get multiple of the same lead and want to merge, it consolidates everything into one lead but then we have multiple of the same task.

I'm wondering if it is possible to merge leads and only have the tasks from one lead carry through to the final copy of the lead.