Delayed onset muscle soreness (DOMS) is what what we usually mean when we talk about soreness. Let me explain some basics before going to the bench press example.
DOMS is caused in general by damaging the muscle especially when lengthening it at the eccentric part of the motion (ACSM, 2011) (Wikipedia, 2017). According to the wikipedia article I cited, concentric exercise is shown to have no effect on DOMS while isometric causes much less soreness.
However, you should not necessarily be sore in order for your muscles to grow.
Grug Nuckols has shared a nice table summarizing results of research on the effects of rep ranges on strength, hypertrophy and endurance.
By looking at the table you can see that the studies that controlled the volume of the weight lifted have one common thing. There was no difference in the hypertrophy effect. One of the studies however, reported no hypertrophy for reps in the range 20-28. Also, the study that reported hypertrophy results for as high as 100 reps with constant volume was about older untrained adults and thereby the results might be different for younger people.
It is apparent that volume plays a significant role in how much muscle you gain, where volume is the number of weight you lift by the number of reps you do.
You can also observe that higher rep ranges contributed more to endurance while lower higher rep ranges more to strength (as it is commonly thought).
Nonetheless, there is not as much material for the effect of a rep count as high as 100 reps on hypertrophy. Based on these findings one can be more confident of doing reps up to 13-15 instead of 100 with the same volume. It is also more safe to avoid injuries not doing 100 reps since you can remain focused on your technique.
In your example however, in the first case you did lifted in total around 10x9x50=4500kg. In your second example you lifted 1x100x20=2000kg. Based on the research findings above it is obvious that volume is more important than rep ranges except maybe for the case of very high rep ranges. Thereby, I suggest the first example is more effective in terms of hypertrophy.
To summarize
- Soreness does not imply higher muscle growth and volume seems like a significant factor in muscle growth.
- Rep ranges seem to not matter much given a constant amount of volume with a possible but not definite exception for the case of very high reps.
Thus, your first example is more effective for muscle growth because there is more volume even though you did not become as sore. Nonetheless, effectiveness also depends on your goals and the first example is better if you are after strength while the latter is better if you are after endurance.