I've found that most of the time when I've come up with something that sounds familiar, it really just reminds me of another song, rather than being an exact copy. I would just start working on it and see were it goes. Sometimes after working on a tune for a while I'm reminded what song I think it sounds like, or when it's fleshed out more others might find it easier to identify a matching song.
And it could be that it sounds familiar because it's a nice catchy melody.