Really more of an issue of what gradients you're on. If you're doing climbs that are steeper than 10-15% then I would say stick with compact. But if you're regularly on ramps below that then go for 52-36 with an 11-28. At least that's my preference in hilly Marin County.
On some of the 20-28% grades in SF, my 50-34, 11-32 gravel bike is far better even though it's heavier. Sounds like OP may be more concerned with spinning out on descents, but seems the climbs should be the first priority.