Answer:
For Taoism, it is said that before anything existed, there's this "thing" that can't be described, can't be found, and so the Taoists gave that "thing" the name "Dao" in Chinese, which sounds like "Tao" in English, so the religion is named "Taoism".
"Dao" existed before time, space, universe, life, it existed before everything, it is generally "nothingness". But then things came to be when "Dao" made "one", "one" made "two", and so on, and then "Hun Dun", or "Chaos" existed as a result. In the "Chaos", there was a giant egg which bred the first life, "Pan Gu", and he sacrificed himself to open up "Chaos" with his axe, he lifted the sky up and pushed the ground down, thus the world came into being. SO you can say that either "Dao" or "Pan Gu" is the Taoism god.
For Buddhism, in the Taoism perspective, since "Dao" was the origin of nothing and everything, Buddhism was only a branch religion from Taoism.
And also, you might know that the Buddhism we know today came from India, so the Indian Buddhism God might be different from what the Chinese people believe to be the Buddhism God. But for the Chinese Buddhism in this case, the god, or "Fo Zu", is named "Shi Jia Mou Ni".