It depends what your goals are. In general, over time it is best to use a variety of rep ranges. People have strong opinions, sure, usually based on what they did. But in your first few months of lifting, as long as you are trying to increase the amount of work (load, volume, sets, increased speed, reduced time, pauses, etc.) each session almost anything will help.
Lifters tend to focus on muscle, but you also need strong joints, tendons and ligaments to prevent injury.
To get strong, most of the working reps (after warmup) need to be above 80% of your maximum (1RM) in order to recruit type IIB fibers. As you approach 95%, doing more than a few reps is difficult. It is often best to do the bulk of strength work in the 80-90% range (it need not be 95-100% to gain strength) and only test your maximum once every few weeks, even months. Saying “strength requires sets of 1-3 reps, hypertrophy 8-12 reps, do 5 sets of 5…” are simplifications with some truth. Experienced lifters might concentrate on periods devoted to hypertrophy, strength, power, speed, etc.
To get big, you want to do a lot of volume (setsrepsweight). This is often best done and 50-60% of maximal, but specifics depend on the exercise, goals and how many someone can do is influenced by their slow/fast twitch fiber ratio.
Doing a moderate weight for a lot of repetitions can make you as big as the above strategies but may not make you as strong. I like to set challenges for myself and once in a while will do hundreds of (assisted) pull-ups or very large volumes of weight. This is fine once in a while but tends to take up a lot of time, and might take longer to recover from too.
I know an older man who has been doing the same workout with the same exercises and weights someone showed him three decades ago. He completely missed the opportunity to become very strong. The body responds amazingly well to increases in progressive load and strengthens to be able to handle a little more weight (or other stress). If you only do a large number of one exercise, once your body is used to it, it is difficult to make the next workout more difficult once you hit a large number. Given the time and joint stress from repetition involved, and the key principle of needing to do more, high repetitions is less efficient than other ways of increasing stress if done often. But it works better if done for shorter periods. Push-ups are a very good exercise, but once capable it might be better to increase the difficulty by trying wall push-ups, archer push-ups, one handers, etc. depending on goals. If your goal is to do many push-ups, the above may not apply.