Automakers are investing billions to develop software-defined vehicles with the latest sensors, sophisticated infotainment and advanced voice assistants. Now, they face an additional investment decision: whether to take the plunge on pricey 5G connectivity modules.