Leg extension is not better than squats per say. Squats are an essential compound lift that will activate more muscles in your body than just the quads. Leg extensions are a isolation exercise for the quads and are excellent for adding volume to quad training without additional fatigue that comes from more squatting. Add both to your programming for best results.