To switch off call screening, open the Settings app and head to Apps > Phone. Scroll down to the Screen Unknown Callers ...
While iOS 18 is set to introduce a handful of new features to your iPhone's Messages app in the fall, you can disable a Messages feature that some people have called annoying now, thanks to iOS 17.2.