dependsOn with lazy configuration and task provider

Hi,

Given the 2 lines below:

tasks.named('taskA').dependsOn('taskB')
tasks.named('taskA').dependsOn(tasks.named('taskB'))

If I understand well the lazy configuration, both lines configure lazily task ‘taskA’. Is there a difference/advantage passing the task ‘taskB’ by its provider rather than by its name?

Thanks in advance for your help!
Regards,
Vincent