It's optional because the majority of Enterprise users bind to local domain servers. Azure AD is for remote workers, so they can authenticate without having to VPN. I would guess removing CloudExperienceHost (OOBE) deletes that task.
The only people who care otherwise are Office 365 users.
it would be interesting to test, because if you remove task alone, oobe fails.
but removing together both component and task would overcome it