They are two different cars, completely different.
The Gallardo is a two seater, four wheel driven, sportcar, the M5 is a five seater, two wheel driven saloon sport car. The bmw is much more luxurius, much heavier, less noisy, less stiff in terms of suspension...so it's a complete differnt world.
Try both and decide relative to your needs