Eg, for Yosemite, it describes how during summer it is rediculosy busy & hot, so you might prefer to go during the shoulder months, but then you risk having some of the park closed for snow. So, "best weather is subjective".
Likewise, there are many locations, such as Thailand, where the best time to travel is winter. It's too hot in the summer!!