It's the government's job to implement regulations that protect society from free capitalism. In so doing, it will level the playing field so companies no longer have to choose between 'doing the right thing' and 'increasing existential risk'.
'Public shaming' should be used an agent for change -- not to satiate some inner desire for justice. In this case, we can't expect these companies to change on their own accord regardless of the shaming. So, shame the government who is not implementing proper regulation -- not the company.