CNBC's Jim Cramer on Tuesday compared Oracle and C3.ai, enterprise software companies in the spotlight as Wall Street continues to flock to AI-related stocks.