I mean, for instance listen to 'You Shook Me All Night Long'. Come on!
Sorry, I will go away now.
Both are great.
Both are huge inspirations to their respective generation of players.
Broadly and generally, Blackmore is more melodic.
Van Halen is infinitely more, uh, athletic.
Blackmore wins for this subject, IMO.