It's been a while since a good faith counterargument has been fielded in this thread (perhaps not even on this page--I've lost track), so we may have moved beyond the point of debate, but I wanted to throw my at into the ring anyway.
The thing about the Lost Omens setting is that things like Good and Evil are objective, almost elemental forces in the cosmos. Gods are some of the highest embodiments of those forces in the setting by virtue of their divinity and position. This means that if a god acts or espouses and ideology, that act or ideology either:
a) is a mistake, whether because the gods are indeed flawed and sometimes do things they canonically regret, or because the lore itself was published in error, as with Erastil's outdated bigotry
or
b) is endorsed by the authors of the setting as being consistent with their alignment (whether Good or Evil) and therefore officially being endorsed by the universe of the game as objectively good or evil.
There are plenty of morally grey deities who do morally grey things, but by definition their morals are Neutral at best unless the narrative in question is written in such a way as confirms the author's intent that a Good god's questionable act is indeed an error in their judgment and is not consistent with the universal standard of Goodness (which again in this setting is an objective force). Of course, the campaign setting as a whole must by necessity exist outside of a given narrative, and so must its characters.
Finally, the fantasy world of Golarion does not exist in a vacuum, completely isolated from the real world. Allegedly, real people from the modern world play this game, so if something which negatively affects real people in the modern world is given authorial endorsement as being a 'Good' act, it is very little different from the authors announcing their support for these acts, whether blatant misogyny or helping the poor. This goes most strongly for issues which affect real people and less strongly for issues which do not. If Golarion were a world where the gods were explicitly petty, vindictive, or morally neutral, that would be a very different scenario (and again, there are many gods like that), but it is a world where certain gods and their beliefs are referred to by the creators as Good and others as Evil.