Drills should move away from other objects when pushed horizontally into them. I presume you are referring to when a drill drops next to an object. The drill is programmed to activate when dropped any distance onto normal "filled" ground. This rule takes precedence over the "move away from objects or walls" rule -- if that helps clarify anything.
Thanks very much for playing and for commenting, I'm glad you're enjoying it so far!