I think both could be use, although there could be a slightly difference depending on context.
“Imagine” means you are using your imagination, meaning in your mind you start to have thoughts about being a horse... perhaps you can imagine what it feels to be a horse...
“Pretend” means you are not only using your imagination, but also almost acting on it. When you pretend, you act like something you are not.