Indeed. Anti-satellite weapons are not inherently wrong, IMO. Beam weapons would be the smart choice.
It’s the “smashing into” tactic which I think is understood to be foolish for all. The Chinese, IIRC, exploded a satellite close to another satellite, willfully sending shrapnel out in a wide area, which then destroyed the target satellite, generating yet more shrapnel. I believe this is called Kessler Effect. It can turn into a runaway chain reaction which in effect sows land mines throughout entire orbits. Very bad.
But beam weapons are a lot more reasonable.
Beam weapons usually produce a "soft kill". The satellite is dead, but there is no overt indication.
The difference between this and an enemy commanding a satellite to act dead and come back to life later is sometimes hard to discern.