I didn't think I had to say this, but I'm arguing an ethical position that happens to coincide with international law. I think it's always wrong to bomb infrastructure. In this war between Ukraine and Russia, it's a definitive war crime and it would be a violation of international law for Ukraine to strike a power plant in Russia.
The ethical position is that civilian infrastructure like power plants, hospitals, dams, bridges, etc should never be attacked. This is because fake justifications can be made to attack that infrastructure, as we see in Israel's genocide.
Nice observation. I'm arguing 2 compatible things simultaneously, one is legal that obviously has exceptions. The other is ethical to argue that the "exceptions" are just excuses for killing civilians.