Verdict

Both are comparable SSDs. The ZA4000NM1A002 is rated for more write endurance than the WDS400T1R0C, so it's the longer-lasting choice for a NAS that sees steady writes; for light use either is fine and price decides.

WDS400T1R0C ZA4000NM1A002
Capacity 4 TB 4 TB
Form factor M.2 2.5
Interface NVMe SATA
NAND type TLC TLC
Endurance (TBW) 5,100 TB 5,600 TB
DWPD 0.7 0.7
DRAM cache Yes Yes
Power-loss protection No No
Sustained write - -
Price / TB $253.68 -

Highlighted cells mark the stronger spec for a NAS build. Failure rates from Backblaze Drive Stats where available; $/TB uses the cheapest live price where available.