“It will never defrag your SSD.”
How the promise is usually kept
Defragmenting flash wears it out and buys no speed, so the promise is easy to make. It is usually kept in a tooltip, a line in the release notes, or an advanced checkbox that ships switched off. All three hold for exactly as long as nobody changes the default.
How it is kept here
Before any maintenance pass runs, the drive is asked what it physically is, and Windows answers with a media type. Flash gets TRIM. Only a disk the operating system confirms is spinning is ever handed to defrag.exe. No toggle can override this, because there is no toggle.
Services/StorageHealthService.cs — WMI MSFT_PhysicalDisk MediaType gate