I voted for to inconsistent but, Niara is right, the spell is fine.

Sacred Flame Line of sight on casting the spell seems less so when targeting a enemy. Did some simple tests with Shadowheart and Ghale right behind her at the grove behind some rocks targeting cow. Fire Bolt and Ray of Frost requires you to move over to the fence for line of sight. While Sacred Flame works like Faerie Fire and you only have to back up a bit from the rocks. This is the advantage vs other cantrips you gain for using the spell.

On damage wise, I originally threw this spell off my bar till i could respec shadowheart, as it seems weaker than just using a mace or bow (which I just used a bow for her most of the time) since its a flat die roll. Further looking into the spell you gain a +1d8 to the spell for clerics on 5 and 10 level and if you are a light cleric you later on you can apply your ability modifier to the spell.