Costs incurred in developing or improving a product, process, or software: engineering salaries, contract research, and supplies consumed in development.
They matter twice over, for Section 174 treatment and for the R&D tax credit, and the definitions for the two are not identical.