Squats are full-body bilateral exercises where you will use more load to add muscle mass and strength to your quads, glutes, and adductors. Step-ups are unilateral exercises that reduce strength imbalances from bilateral exercises. So, one is not better than the other, it just depends on your fitness goals.