G7 macro any good really compared to a dedicated lens

on a good day i'm getting the impression a G7 can match a DSLR with a dedicated macro lens, would appreciate informed opinions from those that know there stuff [ cost effective alternative to a dedicated lens ?] picture quality is what really matters to me at the end of the day though. it just seems as a newbie to DSLR photography i could get a G7 for less than the cost of a quality lens with little to no loss of discernable picture quality on a good day