Artery in the trunk away from all the under hood heat is the key.
My wife’s 2014 Camaro has the battery in the trunk.
Six months ago I thought her battery was going bad so I replaced it only to find out my problem was the alternator.
My exwife had a 2008 GM Suv with the battery in the floor under the middle row’s foot area behind the front passenger seat. We bought it used in 2014 and when she sold it last year, it still had the factory battery.
You are obviously correct. I wrapped battery with insulation in my 2017 Spark where battery is next to engine. The tiny battery is still doing great after almost 6 years in Florida.