Despite the recent release of several Windows 10 updates, the bug causing Windows Defrag to Trim non-SSD devices still hasn't been fixed.
The bug first appeared in May 2020 after the release of the May 2020 update for Windows 10 2004.
The other bug that was brought in that update was preventing the Windows 10 Automatic Maintenance feature from remembering when a drive was last optimized when after the system restart, which in the end caused SSDs to be defragged on every reboot. That bug was fixed in September 2020-08 Cumulative Update Preview for Windows 10 Version 2004 (KB4571744) update.
However, the other bug still remains active.