It's not the same. Beer has an effect on your liver, your general health, wallet etc.
Sure, everything in moderation, but if you enjoy something, do it. If you suddenly realize that you had neglected something/someone else, then that's another matter.