Categorical data works well with Decision Trees, while continuous data work well with Logistic Regression.
If your data is categorical, then Logistic Regression cannot handle pure categorical data (string format). Rather, you need to convert it into numerical data.
Each algorithm has its own uses and assumptions.