I’ve sometimes used Google’s Call Screening feature on my Android phones so that I wouldn’t have to talk with spammers. Basically, Google answers the call, and then the person (or robot) on the other line is asked a question by Google that is transcribed for you to see. You can click a button for the person to tell you more, you can accept the call or reject the call. I’ve found this to be very helpful in screening out spam calls. You can see a short demo of it here.
If people are in your contact list, then then they don’t have to go through call screening. There’s some other nice benefits of Google’s Call Screening, too. This works on Pixels and select Android phones. It worked on my 2020 Moto G Stylus as well.