This has a moon function:
https://www.amazon.com/Nikon-COOLPIX-P1000-Digital-Camera/dp/B07F5HPXK4/ref=sr_1_11?crid=8RJZF1ACL49H&keywords=coolpix%2B1000&qid=1697892521&sprefix=coolpix%2B1000%2Caps%2C328&sr=8-11&ufe=app_do%3Aamzn1.fos.2b70bf2b-6730-4ccf-ab97-eb60747b8daf&th=1
WOW, nice! It’s a little over my budget, I am looking at this one, it has some astronomy features as well.
https://www.amazon.com/Pentax-K-70-Weather-Sealed-Camera-Black/dp/B01GHVIU70?th=1
Of course, I’ll have to get a lens as well.