Fixed #23799 -- squashmigrations --no-optimize still optimizes

I opted to not remove it because it might become useful when the migration optimizer breaks for some reason.
Please check for "Skipping optimization" (see my comment above) to prevent false positives.