IF the green tomato “ripens” indoors, then the seeds will have better chance of being viable. I believe you are still likely to find greater number of “floaters” [= non-viable / immature / empty seeds] and even the “sinkers” [= viable may seeds ] have lower germination % or be less vigorous as seedlings.
Best seeds for saving would be from unblemished fully mature colored (not necessarily ‘red’ BTW)/ripe, full-sized (not runty) fruit from vigorous healthy plant and preferably from more than one plant of the same variety for genetic variation/vigor. And if I were to be even pickier, from fruits that developed from bagged blossoms to isolate them against accidental cross pollination.
(...that’s not to say these are what I save seeds from every time...

)