The way the number of parts is artificially inflated is quite redicilous. It’s quite common that the same die for for example a microcontroller or a small FPGA is sold with different part numbers. Some microcontroller vendors appear to have 1000’s of different microcontrollers, but which are only based on a handful of dies.
I also fail to see how a few extra timers of UsARTS or other peripherals would have any significant influence on die area or price. And then you hear that some microcontrollers have twice the FLASH, as advertised by the manufacturer. I think that this market would be a lot healthier if those manufacturers just sold a handful of different parts. That would make it a lot easier to just buy a bunch of the same uC and use them for different projects. But the part manufacturers do not like transparency in the market.
And as Naib already wrote. KiBom is (was?) a search engine that took KiCad’s bom and compared prices and availability of a bunch of sources but development was frustrated because the sellers of electronic parts do not like it if you compare their prices with the competitors too much. Or they want to get paid for that info if the volume becomes too big, and this excludes it from KiCad, which is a FOSS program.