The Samsung 870 EVO 1TB wins in 3 out of 6 comparable specs, with 2 ties. Its biggest advantage is DRAM Cache (100% better).
WD Blue SA510 1TB wins in 1 spec (MSRP: 21% better).
Recommendation
Choose 870 EVO 1TB if you want the best overall performance — especially dram cache.
Choose WD Blue SA510 1TB if msrp matters more to you.