defender == can't attack ?

The question is in the title.
are an ability that says "target creature can't attack this turn" and an ability that says "target creature gets defender until the end of the turn" equivalent ?
I know the answer is no (although a user on my forums used this convenience to code Moat), but do you have examples of cards for which this doesn't work ?
are an ability that says "target creature can't attack this turn" and an ability that says "target creature gets defender until the end of the turn" equivalent ?
I know the answer is no (although a user on my forums used this convenience to code Moat), but do you have examples of cards for which this doesn't work ?