There is a large community of Islam living peacefully in Myanmar. If you look around Yangon (the largest and most popular city of Myanmar), you could find a lot of mosques (some even closed to famous pagoda). So this issue is much more complicated than Islam vs Buddhism.