The Androidx Preference library offers, amongst others, two classes for implementing a SwitchPreference in Settings screens:
Both implementations in the AOSP source code at the time of writting this question (AOSP Androidx SwitchPreference and AOSP Androidx SwitchPreferenceCompat) looks mostly the same except for some syleables, etc...
So my question is which one do we have to use, considering compatibility with possible future changes of their implementation