The only real difference between the two is that “Shepherd's pie” originally was made with ground lamb (hence “shepherd”) Cottage pie is traditionally made with beef. Nowadays people make their own versions of both, so no matter how you refer to this almost everyone will know what you're talking about.