Magical thinking is a bit different than cargo-culting. Magical thinking is the belief that unrelated events are causally connected. For example, "I survived the car crash because I had my lucky charm in my backpack".
Cargo-culting is the belief that specific best practices which are causally connected to an outcome in one context will produce those outcomes in other contexts where the chain of causal reasoning no longer holds. For example, "I survived the car crash because I was wearing a seatbelt. Now I'll install a seatbelt on my bicycle too."
Cargo-culting is an important concept in its own right in the tech industry, because those best practices do get often blindly shared, recommended and even enforced into codes and standards, even when the context that made them a good idea is lost. Without a concept like "cargo-culting" to label the fallacy, it can be hard to argue against that proposal, because the side recommending the change has lots of out-of-context data in their favor. For example, "car-crash survival rates are much higher when drivers are wearing seatbelts. Therefore, we're now requiring bicycles and motorbikes to have seatbelts."
Cargo-culting is the belief that specific best practices which are causally connected to an outcome in one context will produce those outcomes in other contexts where the chain of causal reasoning no longer holds. For example, "I survived the car crash because I was wearing a seatbelt. Now I'll install a seatbelt on my bicycle too."
Cargo-culting is an important concept in its own right in the tech industry, because those best practices do get often blindly shared, recommended and even enforced into codes and standards, even when the context that made them a good idea is lost. Without a concept like "cargo-culting" to label the fallacy, it can be hard to argue against that proposal, because the side recommending the change has lots of out-of-context data in their favor. For example, "car-crash survival rates are much higher when drivers are wearing seatbelts. Therefore, we're now requiring bicycles and motorbikes to have seatbelts."