My advice is to take AP classes that interest you and you think you can do well in. The college credit is just an extra bonus. As stated by many posters above ^^^^ some schools give no AP credit, some give credit for only 4 and 5’s on the tests and some will give credit for 3,4 and 5’s on the tests.
Do not base your HS schedule on the premise that AP classes will get you out of some required courses in college.