Goldman Sachs predicts S&P 500 to hit 5,100 in 2024, indicating a continued rally. National Retail Properties presents an opportunity as shares trail VNQ and have an attractive valuation and yield.