When Block Inc. laid off nearly half its staff this week, co-founder Jack Dorsey offered a seemingly simple explanation: artificial intelligence was allowing the company to do more with fewer employe…