Laws of nature, cosmic coincidences and scientific realism