Order of conducting "comparative analysis" and "competitive analysis"

In general, what would be the order of developing a product? Is there any suggestion that we do the competitive analysis first or comparative first? or at the same time if needed? And what are the pros and cons?