You are your body, you cannot be separated. It is only religious mumbo jumbo that separate the flesh and the soul. If you were in a dog you obviously would not be you but the dog instead.
You are you, because that’s how your biology composition is and it has adapted to the environment it exist in.