Both methods work, but... Important, but overlooked thing is that most important is adding volume over time... Just banging 5x5 month after month is not enough if volume only increases because of more weight is added. Much better system is to take a weight that you can just do lets say all out six reps, let it be for example in bench press 115kg. But instead of that six reps you do 3x4.. then in the next three months your goal is to add volume by increasing weight, reps, sets, goal being for example 122kg 6x6...
Every workout little more volume, and you can do ramping, or straight sets, or whatever you like. One session could be 120kg 4x5, next 115kg x5, 120kg x4, 125kg x3, 110kg 2x6.. Have more variation, have more fun, keep it interesting. Just add the volume and progress towards your volume-phase end goal. So starting volume was 1380kg, end volume 4392kg (over three times more volume). Then max strength phase and reap the rewards.