Some developers pay big for AI coding tools. Others stick with free. Here’s how to know when to spend – and when to save.