My analysis is as follows:
Screen: Nexus 5X, still one of the best LCD's in the industry
Performance: Nexus 5X, getting complaints about the 617, while the 5X on N flies with the 808
Audio: Nexus 5X, neither of them did anything special, so front facing speakers wins
Security: Nexus 5X (UNLESS you unlock the bootloader), software security appears to be the same, added FPS is nice, will be secure longer with 3 years of garanteed updates
Camera: Nexus 5X, very capable, still one of the best on a midranger
Updates: Nexus 5X, it's a nexus...
Software: Nexus 5X, not "like" stock, it actually is "stock", faster updates, longer updates, it's kinda like having a rockstar sing you to sleep
Available Options: Nexus 5X, 3 colors, 2 storage sizes, 32 GB option is a must
Build & Design: Nexus 5X, build quality I assume is similar, but Nexus is more nicely designed so...
I have the 5X winning 9/9 categories with the one I'm hedging being 'security', because they're identical unless you unlock the bootloader on the 5X, and then the DTEK is better. But the DTEK won't let you unlock the bootloader, so I could justify giving it the category on those grounds... but I'm falling back to, 99% of customers don't unlock the bootloader.