it does also take an actor to sell the vision of a character. an unconvincing portrayal would make the vision seem more like a farce or caricature and if anything undermines the morals
I think it's fair to attribute the result to both the writer and the actor. You're right that Stewart could've sold a morally compromised captain, but equally so he brought something to the Picard role that other actors would not have necessarily brought. One can commonly see in theatre how with the same vision by the playwright, two actors can turn out wildly different results for that character. The same would have happened to Picard if he had been played by someone else.
The original Janeway for Star Trek Voyager only filmed like one episode and her take was very different (French actress I think. And maybe they were aiming for a Picard analog).