Under $500, the strongest choice is usually the phone with the fewest serious compromises. For your priorities, I would put camera consistency, battery efficiency and software support ahead of raw benchmark scores.
For the camera, look for OIS on the main sensor and good processing in indoor light. For battery, pay attention to real mixed-use endurance rather than only mAh. A phone with efficient hardware can outlast one with a larger battery.
I would also compare how many years of updates remain and whether the model has reliable warranty/service in your market. If two options are close, the phone with longer support and better after-sales availability is often the safer long-term buy. Share your country and shortlist because pricing around $500 varies a lot by market.