Depends on personal preference. I much prefer the gym. I can always find a spotter and the sound of the plates clanking always fires me up.
Far more injuries occur in the gym with your “vanity lifts” than occur at home where people focus on their individual needs, body and form.
But yeah, there’s no way to do 3 rep sets with 90% of your 1RM without a spotter.
This old man is totally over that. You will be too one day as recovery from injuries takes up increasing amounts of your training routine.