A screen swap can affect Apple Pencil 2 unless its display-controller IC transfers. The battery uses both stretch-release and conventional adhesive.
What to check before buying
Display controller
iFixit warns that Apple Pencil 2 use after a mini 6 screen replacement requires transferring the display-controller IC from the original screen flex. Include that specialist work when comparing replacement-panel quotes.
Battery and charging
The mini 6 battery uses both stretch-release and ordinary adhesive. iFixit also has a separate USB-C port procedure; both repairs need fresh adhesive after the screen is opened.