The Philadelphia 76ers avoided what would have been a record 27th consecutive NBA defeat by beating the Detroit Pistons 123-98 on Saturday.