You don’t want it pushing the wall out, either after the first heavy rain or gradually over the years. And to your real ...
And to your real answer, the best full-sun groundcover to hold soil on a slope would be purple wintercreeper euonymus. Buy 1-gallon pots and space them 15 inches apart checkerboard style.