You are the one conflating things here. Logic - or, more accurately, logical reasoning - is a process of reaching a conclusion based on drawing from inferences and making connections. While it's true that starting from a flawed premise will result in a flawed outcome (garbage in, garbage out)...