Allora ho una array così formato

Codice PHP:
Array
(
    [
0] => Array
        (
            [
id_reduction] => 3
            
[price] => 50
            
[incompatibleWith] => 0
        
)

    [
1] => Array
        (
            [
id_reduction] => 45
            
[price] => 70
            
[incompatibleWith] => 3
        
)


Quello che devo fare è:
- Leggo tutti gli array
- Se c'è un valore che ha un incompatibilità con l'id_reduction di un altro array considero SOLO quello con il prezzo più alto

Ad esempio, Array [1] ha [incompatibleWith] => 3 quindi non è compatibile con [id_reduction] => 3 dell'altro array.
In tal caso paragono i price dei vari array (in questo caso 2) e prendo in considerazione SOLO quello con price più alto (id_reduction = 45) e dall'array principale cancello l'elemento con id_reduction = 3 perchè ha il prezzo più basso.

Quindi in caso di incompatibilità prezzo quello con il prezzo più alto

Non sò proprio come fare...