CoStar and Duolingo are two stocks that have faced investor pessimism, but present potential, according to Baillie Gifford.