Last month, in a game against the Tampa Bay Buccaneers, the San Francisco 49ers’ star defensive end, Nick Bosa, celebrated a routine sack with a cheerful and ungainly series of hip-swivels and fist-pumps, not unlike the movements of an automaton gaining sentience.