I believe both iOS and Android now support built in call screening, where a caller must leave a message about why they’re calling and you get to decide if you pick up.
Since enabling it on my iOS device, every spammer has hung up immediately, rather than leave a message or try to talk to me.