When you set that to 9999999, and after you boot to desktop, you can use the following command to check which drive was TRIMed during boot.
Code:
log show --predicate "processID == 0" \--start $(date "+%Y-%m-01") | grep spaceman
AFAIK, all SSD will be TRIMed, but not just the boot drive.
Apart from which drive was TRIMed, you can also see how much time spent on each drive. Then you will know why it takes so long.
Since APFS was introduced into macOS, this bug exist, not just in Monterey.
Anyway, I set SetApfsTrimTimeout=0 for a few months now. No issue so far, and can't feel any performance degradation. The following is from the latest OpenCore manual under the SetApfsTrimTimeout section.
View attachment 2185320
If you really concern about it, may be you can set that to zero just for this "setup period". Once you finish the initial setup, and no need to reboot that often, you can set that back to 9999999.
Or, you may set that to 9999999 then make a reboot once every few weeks. So that the SSD at least will be manually TRIMed something like once a month.
Last but not least, the Samsung SSD should has overprovisioning built in.