Answer:
it depends on your lifestyle. If you travel a lot you might consider not even having one of either. if you have a family a dog will be the best. golden retrivers are the best for a loyal dog. they also are good with children. cats are okay but that's my opinon cause my cat bit me once.
Cats can be good for families, it just depends on their history. If you are getting yours from a shelter, ask for its history, like if it trusts people or if it is shy, etc., depending on what you need. If your cat is marking its territory and acting aggressive, you should get it spayed/neutered. If its past is; living in hardship on the street, then it might be more scared or aggressive