My Baofeng LiIon batteries last for a very long time stored in the trunk (for the emergency kit radio) and in the glovebox (because why not keep a radio in the glovebox?) as long as they don’t sit discharged for long periods.

I have never owned a D72A but my original Kenwood TH-F6A battery is still going strong and often ends up in the trunk on hot days.

The cabin is probably the worst place to keep electronics on hot days, followed I’d suspect by the glovebox and then the trunk.