Even if they kill the Governor, Martinez will just step in, and what will be different? Even if the Governor could be killed during the prison assault, how many of Rick's group would die before successfully killing him. A Pyrrhic victory is no victory at all for Rick's group. Rick's group should have survival as their only goal. Staying at the prison is not a viable goal, because taking any casualties at all is a defeat for them.