How to disable the_excerpt from one post

First of all, WordPress already includes a function for displaying excerpts: the_excerpt()

Secondly, your second piece of code isn’t actually displaying anything. You need to use the echo statement for displaying text on the page. However, WordPress provides functions that actually display the content and excerpt on the page: the_content() and the_excerpt(), respectively.

if( in_array( $post->ID, array(post_ID) ) ) 
    the_content();
else
    the_excerpt();