Competing polarization reversal mechanisms in ferroelectric nanowires