In recent years, Target ( TGT 2.42%) has struggled to win over investors, with its larger rival Walmart being the hotter buy.