Compare Caterpillar Inc. and Union Pacific Corporation on price, valuation, growth, and sector metrics.