China’s exports beat expectations in December, but failed to offset an overall decline for 2023, customs data showed Friday.