Not true, just compare the iPhone XR and Galaxy S10e ― pound for pound the S10e has better hardware, yet cost the same amount
And now you have explained to yourself why software, ecosystem, support, update- and privacy-policy matter as a huge surplus value which Android manufacturers will never overcome with spec- and price-dumping ... You feel smarter now, don't you? ;-)