The EW article you link to states that offers went out to Williams and Lithgow before the studio went with Danson. This very likely means that they passed on the project. It’s not like old Teddy was fighting off legions of comedy legends for the chance to replace Laurence Fishburne on CSI!