Apple and Samsung have gone head-to-head with new phones that are hundreds of dollars cheaper than premium models. Here’s how they stack up.