The phrase "had nothing to do with" can be replaced by a variety of synonyms depending on the context of the sentence. Some alternatives include "was not connected to," "was unrelated to," "was not involved with," "was not associated with," "had no bearing on," and "did not contribute to." These synonyms can be used to convey a sense of distance or lack of responsibility for a particular situation or outcome. It is important to choose the appropriate synonym based on the intended meaning and tone of the sentence to avoid confusion or misinterpretation. Ultimately, using a varied vocabulary can enhance one's writing and communication skills.