With the right tools, it's very easy to change the serial number and bypass Activation Lock on T2-based MacBooks (2018-2020).
These repaired computers obviously won't have a warranty, but are usually past the 1-year term anyway. I've not heard of any risks from this procedure. It's a personal decision, but these tools have saved a lot of MacBooks from becoming e-waste due to the Lock.