def METHOD_NAME(cls, attr: Attr) -> bool:
    """
    Return whether we should unset the default value of the attribute.
    - Default value is not set
    - Attribute is xsi:type (ignorable)
    - Attribute is part of a choice
    """
    return attr.default is not None and (
        attr.is_xsi_type
        or attr.is_list
        or (not attr.is_attribute and attr.is_optional)
    )