In essence, the two books serve complementary roles in a candidate's learning journey:

This is where the book shines. The interviewer will pick a component and ask, "What happens if this fails?" The PDF provides canned responses for scaling a specific node:

The two are complementary, not competitors. Many successful candidates read Alex Xu first to pass interviews, then DDIA to deepen their understanding.