Pivoting is the new failure. It casts you in a bad light, like putting a reason for leaving as being fired. Additionally, pivoting means you're trying something new, and this is less valuable than having experience in the job. It means you'll have to spend a lot of the employer's time (money) messing around, making mistakes, breaking things, etc - as is necessitated by learning.