Neither is better or worse — just different. Plus, it depends on the goals you have. If your goal is strength then barbell squats are your go-to. If you want to improve your balance and reduce imbalances, the pistol squat should be your first choice. There is room for both because no matter your goal. The nice thing, too, is that one will improve the other.