How to Choose a Domain Extension

Sure, you can try and register your company's name as its domain, but what if the .com extension is already taken? Should you change the URL or the extension?