When black box algorithms are (not) appropriate