Trading off between grades and course rigor

How do you guys balance this out?

Would you choose AP physics, and take a 50/50 chance of earning a B, over taking honors physics and being guaranteed an A?

If it’s a single B then go for the AP class. But if you are getting more Bs than As then drop back down to honors level