I think it's fairly absurd that if you're invited to a wedding, you have to give a gift
Especially if it's a casual friend or co-worker. Not all people invited to a wedding, especially if it's a large wedding, know the bride and groom very well. Heck, sometimes they don't know the bride or groom at all. They're invited simply because of workplace politics, or to fill out the venue. So if I get an invite to a wedding of people I barely know, and I RSVP no, on time, I still have to buy them a gift? That's just stupid.
I would say if you RSVP yes, and then don't show up, for whatever reason, you should buy a gift and make sure it gets delivered to the happy couple. That's fair since they (or their famliies) paid for the food that you would have had as well as other costs.
But to pay simply because you were invited to a wedding, is idiotic. I can see if you are truly close friends or family with the couple and can't make the wedding, then it's a classy gesture to buy them a gift. Hell, it's a classy move anyway. But to be obligated to buy a gift, or to say it's a breach of etiquette to buy a gift, regardless of attending the wedding or your RSVP status? Hell no