It is difficult to say definitively which animal has a stronger memory, as memory is complex and measured in different ways.
Dogs excel in spatial memory, remembering locations, routes, and scents, and they show strong associative learning. Camels have impressive navigational skills, remembering desert routes and water sources, and demonstrate long-term and social memory by recognizing people and herd mates after years.
Dogs and camels have evolved different memory abilities suited to their environments, making direct comparison difficult.