These get conflated constantly, and the confusion is understandable because both phrases show up on the same control panel. They are not the same claim, and they are not verified the same way.
A "Sanitize" cycle is a name the manufacturer chose
Plenty of dishwashers — portable and built-in alike — have a cycle labeled Sanitize, Hygiene, or Heavy that runs hotter water or a longer hold time than the standard cycle. That name is the manufacturer describing what the cycle is designed to do. Nothing requires an independent lab to verify that the cycle actually reaches and holds the stated temperature in your specific unit, on your specific water supply, before the brand is allowed to print the word "sanitize" on the dial.
NSF certification is a third party checking the claim
An NSF listing means the unit — or the specific cycle being certified — was tested by an accredited lab against the written NSF 184 requirements and passed. The difference is who's checking: with a cycle name, you're trusting the manufacturer's description. With an NSF mark, an outside party ran the test.
Practically: a dishwasher can have a "Sanitize" button and no NSF certification at all, and that's extremely common — it's most of the category. A dishwasher can also, in principle, have NSF certification without a cycle specifically labeled "Sanitize," if the certification covers material safety rather than a sanitization performance claim. The two things that look related on a spec sheet are tested, and verified, independently of each other.