Android can absolutely do this. Either via settings or replacing the default calling app.
You absolutely can block such numbers in the stock Android phone app; some online sources indicate iOS lacks this basic feature, but I don't know if they are accurate and current.