New Sites And URLs

I install wordpress, the URL its https://siteDefaul.com , then i update my real site, up my DB, if i in with this URL https://MyRealSite.com i see the old wordpress site, but if i put https://www.MyRealSite.com its the correct site

Its better you put we can www when we create a new site, i guess, thanks!