Shape transitions in polymer mushrooms compressed by a finite‐size obstacle