How many times have you been typing up an email or finishing up a message and then a call (mostly spam) just pops up? And half the time the call gets accidentally answered. Maybe an early Christmas present this year to resolve this? Android has solved it for years now.
As mentioned above, pressing Decline works well. It’s no issue to block the number.