Indeed this is not the intent of the thread to do a debate on this, but if you're interested in the matter, I'll point you to this excellent book. It doesn't propose a definitive answer, but it convincingly explains how better leadership could have avoided a conflict even after the assassination, while describing how the events since ~1900 had made a war much more likely in the first place.