Maybe danilo is too oriented on the foensive and cannot defend as good as Sandro.
Juve rarely puts heavy oofensive minded players in positions that require defensive workload. Sandro is no exception.
Teams like real madrid who are very flair and fancy focused do this. Thats why they get crushed from time to time, when the teams gets desynched or exposed...because the lack of cohesion and musckle