The Realme photo looks fake. You just don't get that much light at night from a 30 second shot without a lot of post processing. You'd probably get blurry stars too, depending on your location.
It's great if you want to take photos of your friends at night, but if you're trying to get genuine photos of the stars, I wouldn't trust it.