Can’t coerce inside of implicit parameters
## Summary
```haskell
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE ImpredicativeTypes #-}
module Test where
import Data.Coerce
newtype Foo = MkFoo Int
a :: (Foo -> Int) -> (Int -> Int)
a = coerce
b :: ((?foo :: Foo) => Int) -> ((?foo :: Int) => Int)
b = coerce @(((?foo :: Foo) => Int)) @(((?foo :: Int) => Int))
```
`a` typechecks, but `b` does not.
This prevents `DerivingVia` for classes whose methods have implicit parameters whose types depend on the instance.
## Expected behavior
`b` typechecks
## Environment
* GHC version used: 9.10.2
issue