Yes, only the alcohol is 9kcal/g, and wine is not 100% alcohol, but like beer it does have other stuff in it, mostly simple carbs.
A typical 200ml glass of wine, which is 2 standard drinks, has got about 150-200kcal (more for sweet and white, less for dry and red). A 375ml stubby of heavy beer, 1.5-2 standard drinks, has about 150kcal.
It's about 15 minutes of moderate exercise to burn one standard drink. So if you have a bottle of wine in a week, that's a couple of hours of cardio. A sixpack of heavy beer is 2-3 hours.
A typical workout programme might be Mon/Wed/Fri weights for an hour and Tues/Thurs/Sat cardio for 30 minutes, or 4.5 hours a week. The weights aren't usually as intense because you have rest sessions, but they burn more calories after the workout so an hour of weights, hour of cardio, comes to roughly the same thing.
So in terms of fat loss, if you drink a bottle of wine or two, and drink a sixpack or two weekly, you're spinning your wheels going nowhere.
The "not more than six standard drinks" I recommended above translates to up to 1.5 hours of weights or cardio. Against the 4.5 hours or so weekly, it's "two steps forward, one step back." Drink more than that and you're going nowhere, or going backwards.
Aside from calories, you have to consider the nutrition of the thing. After all, there's a difference between 1,000 kcal of beer and 1,000 kcal of oranges, apples, green beans and almonds. If you are restricting your overall calories, or trying to bulk up without gaining too much fat or getting ill, then you want the maximum vitamins and minerals and protein from those calories. Most booze has very little.