Yes, the intentions are the same, though 'whatever' is more emphatic. 'Whatever the case may be' certainly does not apply to only two cases, and neither does 'as the case may be', though that may be the commonest application of the latter.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.