Earlier quoted context omitted.
Replacing seems fair enough...eliminates buyers remorse.
It's not as good for the environment, though. Some companies like Apple try to make up for this by replacing broken devices, then refurbishing and reselling the formerly broken device.
Depends on other laws, here they have to take it back and recycle it. This also applies to old appliances. I had some empathy for the poor guys who had to take my extremely cheap, completely rusted washing machine away when I bought a new one.
While repairing might be better, it's not the worst outcome to replace it.