How to formally address two individuals with different titles for PhD cover letter
In all likelihood, nobody will pay much attention to this. But if anyone is going to take offence, I think it is much more likely they will be upset if you haven't given them the correct title than because you're "drawing attention to their different levels". So I would address my letter "Dear Prof. X and Dr Y".