You're lucky, I have a Macbook Pro 13 with touchbar from 2016 and had to replace keyboard and battery (under warranty) and complete motherboard, ssd, cpu, memory, etc (it's all bundled) and add to pay around 700 eur... the only thing that hadn't been replaced, yet and hopefully never, was the screen.
This to say that this kind of comparison are not helpfull. Machines can break and have to be replaced as a whole or some parts... lucky you for being in the two year warranty period...