There has to be a balance. Much of this depends on your training years.
Once you have your first injury, you’ll realize you should have done more moderate weight using variations of the lifts the majority of the time and saved the competition lifts and heavy weight more for your pre-contest training.
Spend more time building and less time testing.
For example: Instead of doing the competition bench press, focus on building muscle doing variations like the overhead press, incline press, decline press in the 5-10 rep range. Change it up every week. Then once every 6 weeks or so do the competition set up for a heavy 5 or 3.
Weeks 1-5 Variations 5-10 rep range
Week 6 Heavy 5
Weeks 7-11 Variations 5-10 rep range
Week 12 Heavy 3
Weeks 13-17 Variations 5-10 rep range
Week 18 Heavy single (not max attempt but PR is fine if its there)
What I’m saying is, training this way will prolong your competitive lifting.