You should try to collect several planets at the start of the game. Unless you're very close to your opponent's start location, you should probably have four or five before any major battles break out. Ensure you've purchased population infrastructure upgrades for all your planets (1 for asteroids, 2 on any other), because there is a penalty of 2.6 credits per second for under-development.
The unfair and hard AI's do get a resource cheat to build units extra fast, but otherwise you should have no problems matching them numerically. Don't waste cash on defenses (repair bays are okay, turrets and hangers cost too much) and build up a strong fleet. Hope that helps.