You'll probably get more of a response on the "pre-optometry" forums. But since I'm here, I'm going to go ahead and say that it'll probably be a long shot that you can have inorganic/biochem classes "take the place" of gen chem. You can apply and use the AP credits in gen chem, but you've got other chemistry classes you would need to take anyway. You'd have to check with individual schools and make sure that the AP credit would apply. In the school that I am attending, you have separate requirements for classes such as Ochem and Biochemistry that you'd need to use in that category. If that makes sense.
And just my two cents, AP classes/exams are great ways to knock off expensive college classes EXCEPT if they are core components of your major. I have yet to meet anyone who felt like their AP class fully prepped them to the full level of taking it as a college class. You will be learning the foundations of your entire major though gen chem, and having holes in knowledge because your AP teacher "skimmed it because its not heavily on the exam" or "you'll learn more about it in college" might seriously screw you over. So just make sure you are sure what you want to do, and be careful with which AP credits you want to apply.