TSA wouldn't let me decline the photo, which is your right
I always decline having my photo taken by the TSA because it isn't mandatory and they never tell you that. So I try to avoid face scanning as a principle.
I hand my ID to the agent and say "I'm gonna decline the photo" and he just goes ahead and puts it in the machine and says "Sorry, you have to say that before you hand me the ID. Now you don't have the option".
And he refused to let me decline or reset the machine or anything. He just kept repeating "It's on you to tell me before." Which I did. He just didn't listen before he just did what he was gonna do anyway.
EDIT: Thank you everyone for reminding me that drivers licenses and passports exist! /s The point remains that if they didn't stand to benefit from it, they wouldn't be doing it and they wouldn't be so shady about your ability to opt out. You shouldn't be giving the government anything you don't have to ever. They are counting on you to just take the "it's all hopeless anyway" attitude.