Tim O'Mahony was named man of the match as Cork secured their place in the semi-finals of the GAA Hurling All-Ireland Senior Championship.