I don't think your answer was particularly offensive, and I suspect a good many readers would agree. It only attracted one "offensive" flag (and several downvotes), so I doubt it would've been deleted automatically if a moderator hadn't intervened (truly offensive stuff tends to get the -100 rep penalty + lock), although it would likely have attracted more downvotes.
But it doesn't matter.
Ask yourself, do you really want to sit here and debate the exact location of the line between "unhelpful" and "seriously offensive"? Is knowing that going to improve your writing, your attitude, your enjoyment of answering questions here? I rather doubt it.
Folks didn't like your answer. Whether they truly thought it offensive, unhelpful or merely written in poor taste, the reaction to it was immediate and visceral. If it hadn't been deleted, it would likely have attracted even more negative attention, and - given the responses here - probably a fair bit of drama.
You don't need anyone here to tell you all this. You saw the problem almost immediately, and edited to correct it. You could've probably then just flagged it for undeletion, or even just posted the new revision as a new answer.
Either way, you should have walked away from that encounter a bit better prepared for the next time, having learned something about how folks are likely to respond to a certain style and phrasing.