The young chipmaker has software advantages over much larger rival Huawei as it aids Beijing’s race for tech self-sufficiency