The best word to replace "flaw" in the sentence is A. defect.
The sentence would read: "The defect in his plan caused them to end up without tickets to the performance." This fits well in the context since "defect" refers to a shortcoming or imperfection that can lead to failure or problems.