It could also be the language choice, which one are you utilizing? I could see some languages having a worse experience than others.
I’ve found it is exceptionally smart with bash. It often knows what to do better than I can, because I’m no master at bash. I’m proficient enough to know when it’s right though, and it’s usually pretty on point.
A couple options here: https://github.com/offa/android-foss?tab=readme-ov-file#-call-blocker--spam-filter
None of them are very big but they may be worth a try