The question is: are you using your phone while it's being wirelessly charged?
If you don't, that should be ok for the battery health.
If you do use the phone, even passively, like playing music, charging via magsafe will deteriorate the battery health.
I was using magsafe only on the iPhone 12 while using it, playing YouTube video, playing radio or playing tunes, and I lost 10% in the first 6 months. Since I stopped using the phone on magsafe, battery heath has stabilized at 89% for now 3 months in.