It does sound the same, but it means two different things. אני אומר לא means I say no. Whereas, אני אומר לו means I say to him.
I just realized that אני אומר לא is not the same as אני לא אומר. the former means I say no while the latter means i don't say